This interface is used as the super-interface of Promise and Future, and these should generally be
used instead.
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if the operation was cancelled by this call, otherwise false.Cancel this asynchronous operation, unless it has already been completed or is not cancellable. |
| public Throwable | Returns: The cause of the failure, if any. Otherwisenull if succeeded.Returns the cause of the failed operation if the operation has failed. |
| public EventExecutor | |
| public V | Returns: the result of this operation, if completed successfully.Return the successful result of this asynchronous operation, if any. |
| public boolean | Returns: true if this operation can be cancelled.Returns |
| public boolean | Returns: true if this operation has been cancelled, otherwise false.Return |
| public boolean | Returns: true if this operation has completed, otherwise false.Return |
| public boolean | |
| public boolean |
| cancel | back to summary |
|---|---|
| public boolean cancel() Cancel this asynchronous operation, unless it has already been completed or is not cancellable. A cancelled operation is considered to be done and failed.
If the cancellation was successful, the result of this operation will be that it has failed with a
Cancellation will not cause any threads working on the operation to be interrupted.
| |
| cause | back to summary |
|---|---|
| public Throwable cause() Returns the cause of the failed operation if the operation has failed.
| |
| executor | back to summary |
|---|---|
| public EventExecutor executor() Returns the | |
| getNow | back to summary |
|---|---|
| public V getNow() Return the successful result of this asynchronous operation, if any.
If the operation has not yet been completed, then this will throw
| |
| isCancellable | back to summary |
|---|---|
| public boolean isCancellable() Returns
| |
| isCancelled | back to summary |
|---|---|
| public boolean isCancelled() Return
| |
| isDone | back to summary |
|---|---|
| public boolean isDone() Return
| |
| isFailed | back to summary |
|---|---|
| public boolean isFailed() Returns | |
| isSuccess | back to summary |
|---|---|
| public boolean isSuccess() Returns | |