public abstract class RunnableBase extends Object implements Runnable
| Modifier and Type | Class and Description |
|---|---|
protected static class |
RunnableBase.Status |
| Modifier and Type | Field and Description |
|---|---|
protected AtomicReference<RunnableBase.Status> |
status |
| Constructor and Description |
|---|
RunnableBase() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
protected boolean |
isAlive()
The semantic of RunnableBase class is it that can't continue "executing" as soon the destroy() method was invoked
or the backing thread was interrupted.
|
boolean |
isDestroyed() |
protected final AtomicReference<RunnableBase.Status> status
public void destroy()
public boolean isDestroyed()
protected boolean isAlive()
Copyright © 2001–2021 JBoss by Red Hat. All rights reserved.