| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Runnable | |
| pack-priv static final Object | ASYNC_DISPOSED
Indicates the dispose() was called from another thread. |
| pack-priv static final Object | |
| pack-priv static final int | |
| pack-priv static final Object | PARENT_DISPOSED
Indicates that the parent tracking this task has been notified about its completion. |
| pack-priv static final int | |
| private static final long | |
| pack-priv static final Object | SYNC_DISPOSED
Indicates the dispose() was called from within the run/call method. |
| pack-priv static final int |
| Access | Constructor and Description |
|---|---|
| public | ScheduledRunnable(Runnable
the runnable to wrap, not-null (not verified) actual, DisposableContainer the parent tracking container or null if none parent)Creates a ScheduledRunnable by wrapping the given action and setting up the optional parent. |
| Modifier and Type | Method and Description |
|---|---|
| public Object | call()
Implements java. |
| public void | dispose()
Implements io. |
| public boolean | isDisposed()
Implements io. |
| public void | |
| public void |
| actual | back to summary |
|---|---|
| pack-priv final Runnable actual | |
| ASYNC_DISPOSED | back to summary |
|---|---|
| pack-priv static final Object ASYNC_DISPOSED Indicates the dispose() was called from another thread. | |
| DONE | back to summary |
|---|---|
| pack-priv static final Object DONE | |
| FUTURE_INDEX | back to summary |
|---|---|
| pack-priv static final int FUTURE_INDEX | |
| PARENT_DISPOSED | back to summary |
|---|---|
| pack-priv static final Object PARENT_DISPOSED Indicates that the parent tracking this task has been notified about its completion. | |
| PARENT_INDEX | back to summary |
|---|---|
| pack-priv static final int PARENT_INDEX | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides java. | |
| SYNC_DISPOSED | back to summary |
|---|---|
| pack-priv static final Object SYNC_DISPOSED Indicates the dispose() was called from within the run/call method. | |
| THREAD_INDEX | back to summary |
|---|---|
| pack-priv static final int THREAD_INDEX | |
| ScheduledRunnable | back to summary |
|---|---|
| public ScheduledRunnable(Runnable actual, DisposableContainer parent) Creates a ScheduledRunnable by wrapping the given action and setting up the optional parent.
| |
| call | back to summary |
|---|---|
| public Object call() Implements java. Doc from java. Computes a result, or throws an exception if unable to do so. | |
| dispose | back to summary |
|---|---|
| public void dispose() Implements io. Doc from io. Dispose the resource, the operation should be idempotent.
| |
| isDisposed | back to summary |
|---|---|
| public boolean isDisposed() Implements io. Doc from io. Returns true if this resource has been disposed.
| |
| run | back to summary |
|---|---|
| public void run() Implements java. Doc from java. Runs this operation.
| |
| setFuture | back to summary |
|---|---|
| public void setFuture(Future<?> f) | |