Future whose result depends on another Cancellable process
or operation or another Future. Dependent process will get cancelled
if the future itself is cancelled.
| Modifier and Type | Field and Description |
|---|---|
| private final AtomicReference |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | cancel(final boolean
true if the thread
executing this task should be interrupted (if the thread is
known to the implementation); otherwise, in-progress tasks are
allowed to completeOverrides org. Implements java. |
| public boolean | |
| public boolean | |
| public void | setDependency(final Cancellable dependency)
Implements org. Cancellable dependency on another ongoing process or
operation represented by Cancellable.
|
| public void |
| dependencyRef | back to summary |
|---|---|
| private final AtomicReference<Cancellable> dependencyRef | |
| ComplexFuture | back to summary |
|---|---|
| public ComplexFuture(final FutureCallback<T> callback) | |
| cancel | back to summary |
|---|---|
| public boolean cancel(final boolean mayInterruptIfRunning) Overrides org. Implements java. Doc from java. Attempts to cancel execution of this task. This method has no
effect if the task is already completed or cancelled, or could
not be cancelled for some other reason. Otherwise, if this
task has not started when The return value from this method does not necessarily
indicate whether the task is now cancelled; use
| |
| completed | back to summary |
|---|---|
| public boolean completed(final T result) Overrides org.
| |
| failed | back to summary |
|---|---|
| public boolean failed(final Exception exception) Overrides org.
| |
| setDependency | back to summary |
|---|---|
| public void setDependency(final Cancellable dependency) Implements org. Doc from org. Sets
| |
| setDependency | back to summary |
|---|---|
| public void setDependency(final Future<?> dependency) | |