V
- The type of object returned by the taskpublic interface ISettableFuture<V> extends Future<V>
The setters names are different because it is not possible to rely on parameter overloading as it
is possible to return an exception as the result of a Callable
.
Modifier and Type | Method and Description |
---|---|
void |
setException(Throwable result)
Set the result of the task execution.
|
void |
setResult(V result)
Set the result of the task execution.
|
void |
setTask(ITaskWrapper wrapper)
Set the task
|
void setResult(V result)
result
- The result of the executionvoid setException(Throwable result)
result
- The execution thrown by the executionvoid setTask(ITaskWrapper wrapper)
wrapper
- TaskWrapper for task of the futureCopyright © 2016. All Rights Reserved.