CancelFuture.
| Modifier and Type | Field and Description |
|---|---|
| private CancellationException |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public CancellationException | getBackTrace()
Implements org. Obtains an exception describing the stack trace of where the cancellation was initiated. |
| public boolean | isCanceled()
Implements org. Tells whether the cancellation has been effected. |
| public void | setBackTrace(CancellationException
CancellationException to setImplements org. Sets a |
| public void | setCanceled()
Implements org. Marks this |
| public void | setCanceled(Throwable
optional error)Throwable, if non-null, it'll be attached to the backtrace.Implements org. Marks this |
| public void | setNotCanceled()
Implements org. Completes this future with a value indicating that the cancellation was not done. |
| public Boolean | Returns: the value ofisCanceled()Wait timeout in milliseconds timeoutMillis, CancelOption... Optional options)CancelOptions defining the behavior on time-out or interrupt; ignored if
the future is not Cancellable.Implements org. Wait and verify that the operation was successful |
| backTrace | back to summary |
|---|---|
| private CancellationException backTrace | |
| DefaultCancelFuture | back to summary |
|---|---|
| protected DefaultCancelFuture(Object id) | |
| getBackTrace | back to summary |
|---|---|
| public CancellationException getBackTrace() Implements org. Doc from org. Obtains an exception describing the stack trace of where the cancellation was initiated.
| |
| isCanceled | back to summary |
|---|---|
| public boolean isCanceled() Implements org. Doc from org. Tells whether the cancellation has been effected. (
| |
| setBackTrace | back to summary |
|---|---|
| public void setBackTrace(CancellationException backTrace) Implements org. Doc from org. Sets a This is a framework-internal method.
| |
| setCanceled | back to summary |
|---|---|
| public void setCanceled() Implements org. Doc from org. Marks this This is a framework-internal method.
| |
| setCanceled | back to summary |
|---|---|
| public void setCanceled(Throwable error) Implements org. Doc from org. Marks this This is a framework-internal method. | |
| setNotCanceled | back to summary |
|---|---|
| public void setNotCanceled() Implements org. Doc from org. Completes this future with a value indicating that the cancellation was not done.
| |
| verify | back to summary |
|---|---|
| public Boolean verify(long timeoutMillis, CancelOption... options) throws IOException Implements org. Doc from org. Wait and verify that the operation was successful
| |