Classes implementing this interface that support state listeners are expected to notify the listeners when
cancel() changes the state of the operation.
| Modifier and Type | Method and Description |
|---|---|
| public CancelFuture | Returns: ACancelFuture that can be used to wait for the cancellation to have been effected, or
null if the future cannot be canceled or is already completed.Attempts to cancel the operation. |
| public CancelFuture | |
| public boolean | Returns: true if the operation was cancelled, false otherwise.Tells whether this operation was canceled. |
| cancel | back to summary |
|---|---|
| public CancelFuture cancel() Attempts to cancel the operation.
| |
| getCancellation | back to summary |
|---|---|
| public CancelFuture getCancellation() Retrieves the
| |
| isCanceled | back to summary |
|---|---|
| public boolean isCanceled() Tells whether this operation was canceled.
| |