V
- The type of resultpublic final class FutureSetResult<V> extends Object implements ITaskResultProcessor<V>
Constructor and Description |
---|
FutureSetResult(ISettableFuture<V> future) |
Modifier and Type | Method and Description |
---|---|
void |
onResult(ITaskWrapper task,
V result)
Action to take if the task returns a result.
|
void |
onThrowable(ITaskWrapper task,
Throwable t)
Action to take if the task throws an exception.
|
public FutureSetResult(ISettableFuture<V> future)
public void onThrowable(ITaskWrapper task, Throwable t)
ITaskResultProcessor
onThrowable
in interface ITaskResultProcessor<V>
task
- The task executedt
- The resultpublic void onResult(ITaskWrapper task, V result)
ITaskResultProcessor
onResult
in interface ITaskResultProcessor<V>
task
- The task executedresult
- The resultCopyright © 2016. All Rights Reserved.