public interface Result<T>
IoFuture.| Modifier and Type | Method and Description |
|---|---|
boolean |
setCancelled()
Acknowledge the cancellation of this operation.
|
boolean |
setException(IOException exception)
Set the exception for this operation.
|
boolean |
setResult(T result)
Set the result for this operation.
|
boolean setResult(T result)
result - the result to setfalse if the operation was already completed, true otherwiseboolean setException(IOException exception)
exception - the exception to setfalse if the operation was already completed, true otherwiseboolean setCancelled()
false if the operation was already completed, true otherwiseCopyright © 2016 JBoss by Red Hat. All rights reserved.