IoFuture result type
org.xnio.IoFuture instance.
| Modifier and Type | Field and Description |
|---|---|
| private final AbstractIoFuture |
| Access | Constructor and Description |
|---|---|
| public | FutureResult(final Executor
the executor to use to execute listener notifiers. executor)Construct a new instance. |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public IoFuture | |
| public boolean | Returns: false if the operation was already completed, true otherwiseImplements org. Acknowledge the cancellation of this operation. |
| public boolean | Returns: false if the operation was already completed, true otherwisethe exception to set exception)Implements org. Set the exception for this operation. |
| public boolean | Returns: false if the operation was already completed, true otherwisethe result to set result)Implements org. Set the result for this operation. |
| ioFuture | back to summary |
|---|---|
| private final AbstractIoFuture<T> ioFuture | |
| FutureResult | back to summary |
|---|---|
| public FutureResult(final Executor executor) Construct a new instance.
| |
| FutureResult | back to summary |
|---|---|
| public FutureResult() Construct a new instance. The direct executor will be used to execute handler notifiers. | |
| addCancelHandler | back to summary |
|---|---|
| public void addCancelHandler(final Cancellable cancellable) Add a cancellation handler. The argument will be cancelled whenever the
| |
| getIoFuture | back to summary |
|---|---|
| public IoFuture Get the
| |
| setCancelled | back to summary |
|---|---|
| public boolean setCancelled() Implements org. Acknowledge the cancellation of this operation.
| |
| setException | back to summary |
|---|---|
| public boolean setException(final IOException exception) Implements org. Set the exception for this operation. Any threads blocking on this instance will be unblocked.
| |
| setResult | back to summary |
|---|---|
| public boolean setResult(final T result) Implements org. Set the result for this operation. Any threads blocking on this instance will be unblocked.
| |