invokeAndWait() semantics.
| Modifier and Type | Field and Description |
|---|---|
| protected Object | |
| protected final boolean | |
| protected final PrintStream | |
| protected volatile Thread | |
| protected volatile boolean | |
| protected volatile boolean | |
| protected Throwable | |
| protected final Throwable | |
| protected final Object | |
| protected long | |
| protected volatile long | |
| private static final boolean | TRACE_SOURCE
Enable via the property |
| protected long |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public final void | flush(final Throwable
optional Throwable to be assigned for later t)getThrowable() query in case of an error.Simply flush this task and notify a waiting executor. |
| public final Object | |
| public final long | |
| public final long | |
| public final long | |
| protected final String | |
| public final Thread | |
| public final Object | |
| public final Throwable | |
| public final long | |
| public final long | |
| public final long | |
| public final boolean | Returns: True if invoking thread waits until done, ie anotifyObject was passed, otherwise false;
|
| public final boolean | |
| public final boolean | |
| public final boolean | |
| protected final void | |
| public abstract void | |
| public final void | |
| public String |
| attachment | back to summary |
|---|---|
| protected Object attachment | |
| catchExceptions | back to summary |
|---|---|
| protected final boolean catchExceptions | |
| exceptionOut | back to summary |
|---|---|
| protected final PrintStream exceptionOut | |
| execThread | back to summary |
|---|---|
| protected volatile Thread execThread | |
| isExecuted | back to summary |
|---|---|
| protected volatile boolean isExecuted | |
| isFlushed | back to summary |
|---|---|
| protected volatile boolean isFlushed | |
| runnableException | back to summary |
|---|---|
| protected Throwable runnableException | |
| sourceStack | back to summary |
|---|---|
| protected final Throwable sourceStack | |
| syncObject | back to summary |
|---|---|
| protected final Object syncObject | |
| tCreated | back to summary |
|---|---|
| protected long tCreated | |
| tExecuted | back to summary |
|---|---|
| protected volatile long tExecuted | |
| TRACE_SOURCE | back to summary |
|---|---|
| private static final boolean TRACE_SOURCE Enable via the property | |
| tStarted | back to summary |
|---|---|
| protected long tStarted | |
| TaskBase | back to summary |
|---|---|
| protected TaskBase(final Object syncObject, final boolean catchExceptions, final PrintStream exceptionOut) | |
| flush | back to summary |
|---|---|
| public final void flush(final Throwable t) Simply flush this task and notify a waiting executor. The executor which might have been blocked until notified will be unblocked and the task removed from the queue.
| |
| getAttachment | back to summary |
|---|---|
| public final Object getAttachment() Return the attachment object if any.
| |
| getDurationInExec | back to summary |
|---|---|
| public final long getDurationInExec() | |
| getDurationInQueue | back to summary |
|---|---|
| public final long getDurationInQueue() | |
| getDurationTotal | back to summary |
|---|---|
| public final long getDurationTotal() | |
| getExceptionOutIntro | back to summary |
|---|---|
| protected final String getExceptionOutIntro() | |
| getExecutionThread | back to summary |
|---|---|
| public final Thread getExecutionThread() Returns the execution thread or
| |
| getSyncObject | back to summary |
|---|---|
| public final Object getSyncObject() Return the synchronization object if any. | |
| getThrowable | back to summary |
|---|---|
public final Throwable getThrowable()
| |
| getTimestampAfterExec | back to summary |
|---|---|
| public final long getTimestampAfterExec() | |
| getTimestampBeforeExec | back to summary |
|---|---|
| public final long getTimestampBeforeExec() | |
| getTimestampCreate | back to summary |
|---|---|
| public final long getTimestampCreate() | |
| hasWaiter | back to summary |
|---|---|
public final boolean hasWaiter()
| |
| isExecuted | back to summary |
|---|---|
public final boolean isExecuted()
| |
| isFlushed | back to summary |
|---|---|
public final boolean isFlushed()
| |
| isInQueue | back to summary |
|---|---|
public final boolean isInQueue()
| |
| printSourceTrace | back to summary |
|---|---|
| protected final void printSourceTrace() | |
| run | back to summary |
|---|---|
| public abstract void run() Redeclares java. Doc from java. Runs this operation.
| |
| setAttachment | back to summary |
|---|---|
| public final void setAttachment(final Object o) Attach a custom object to this task. Useful to piggybag further information, ie tag a task final. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |