Constructor and Description |
---|
RunnableTask(Runnable runnable) |
RunnableTask(Runnable runnable,
Object notifyObject) |
RunnableTask(Runnable runnable,
Object notifyObject,
boolean catchExceptions) |
Modifier and Type | Method and Description |
---|---|
Object |
getAttachment() |
long |
getDurationInExec() |
long |
getDurationInQueue() |
long |
getDurationTotal() |
Runnable |
getRunnable() |
Throwable |
getThrowable() |
long |
getTimestampAfterExec() |
long |
getTimestampBeforeExec() |
long |
getTimestampCreate() |
boolean |
hasWaiter() |
boolean |
isExecuted() |
void |
run() |
void |
setAttachment(Object o)
Attach a custom object to this task.
|
String |
toString() |
public RunnableTask(Runnable runnable)
public Runnable getRunnable()
public void setAttachment(Object o)
public Object getAttachment()
public boolean isExecuted()
public boolean hasWaiter()
notifyObject
was passed, otherwise false;public Throwable getThrowable()
public long getTimestampCreate()
public long getTimestampBeforeExec()
public long getTimestampAfterExec()
public long getDurationInQueue()
public long getDurationInExec()
public long getDurationTotal()