public interface Cancellable extends WithException
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 |
|---|---|
CancelFuture |
cancel()
Attempts to cancel the operation.
|
CancelFuture |
getCancellation()
Retrieves the
CancelFuture, if cancel() had been called. |
boolean |
isCanceled()
Tells whether this operation was canceled.
|
setExceptiongetExceptionCancelFuture cancel()
CancelFuture 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.boolean isCanceled()
true if the operation was cancelled, false otherwise.CancelFuture getCancellation()
CancelFuture, if cancel() had been called.CancelFuture if the Cancellable has already been canceled, or null otherwiseCopyright © 2018–2024 The Apache Software Foundation. All rights reserved.