@Immutable public final class UncaughtExceptionResult<V> extends Object implements ITaskResultProcessor<V>
Modifier and Type | Field and Description |
---|---|
static UncaughtExceptionResult |
VOID_RESULT_PROCESSOR |
Constructor and Description |
---|
UncaughtExceptionResult() |
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 static final UncaughtExceptionResult VOID_RESULT_PROCESSOR
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.