IoFuture objects. Used to easily produce implementations.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | |
| pack-priv static class | |
| pack-priv static class | |
| pack-priv static class | |
| pack-priv static class | |
| pack-priv static class | |
| pack-priv static class | |
| pack-priv static class | |
| pack-priv abstract static class | |
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final AbstractIoFuture. | |
| private static final AbstractIoFuture. | |
| private final AtomicReference |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| public <A> IoFuture | addNotifier(final IoFuture.
the notifier to be called notifier,the attachment to pass in to the notifier attachment)Implements org. Add a notifier to be called when this operation is complete. |
| public IoFuture. | |
| public IoFuture. | await(long
the amount of time to wait time, final TimeUnit the time unit timeUnit)Implements org. Wait for the operation to complete, with a timeout. |
| public IoFuture. | awaitInterruptibly()
Implements org. Wait for the operation to complete. |
| public IoFuture. | awaitInterruptibly(long
the amount of time to wait time, final TimeUnit the time unit timeUnit)Implements org. Wait for the operation to complete, with a timeout. |
| public IoFuture | |
| private boolean | |
| public T | |
| public IOException | |
| public T | |
| protected Executor | Returns: the executor to useGet the executor used to run asynchronous notifiers. |
| private AbstractIoFuture. | |
| public IoFuture. | |
| protected void | |
| protected boolean | Returns: false if the operation was already completed, true otherwiseAcknowledge the cancellation of this operation. |
| protected boolean | Returns: false if the operation was already completed, true otherwisethe exception to set exception)Set the exception for this operation. |
| protected boolean | Returns: false if the operation was already completed, true otherwisethe result to set result)Set the result for this operation. |