V- The type of object returned by the task
@Immutable public final class TaskExecutionResult<V> extends Object
The result of a task execution is either an object or an exception. This will wrap the exception
ExecutionException. This is a tuple, it is to make storage of the result easier.
|Modifier and Type||Field and Description|
The execution thrown by the execution wrapped in an
The result of the execution.
|Constructor and Description|
Create a result from an exception.
Create a result from an object.
public final V result
public TaskExecutionResult(Throwable throwable)
throwable- The execution thrown by the execution
public TaskExecutionResult(V result)
result- The result of the execution
Copyright © 2016. All Rights Reserved.