IoFuture.
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: false if the operation was already completed, true otherwiseAcknowledge the cancellation of this operation. |
| public boolean | Returns: false if the operation was already completed, true otherwisethe exception to set exception)Set the exception for this operation. |
| public boolean | Returns: false if the operation was already completed, true otherwisethe result to set result)Set the result for this operation. |
| setCancelled | back to summary |
|---|---|
| public boolean setCancelled() Acknowledge the cancellation of this operation.
| |
| setException | back to summary |
|---|---|
| public boolean setException(IOException exception) Set the exception for this operation. Any threads blocking on this instance will be unblocked.
| |
| setResult | back to summary |
|---|---|
| public boolean setResult(T result) Set the result for this operation. Any threads blocking on this instance will be unblocked.
| |