|
XNIO API 2.1.0.CR2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Result<T>

A handler for the result of an operation. May be used to populate an IoFuture.
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
boolean setResult(T result)
result - the result to set
false if the operation was already completed, true otherwiseboolean setException(IOException exception)
exception - the exception to set
false if the operation was already completed, true otherwiseboolean setCancelled()
false if the operation was already completed, true otherwise
|
XNIO API 2.1.0.CR2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||