T - the type of the result storedpublic class ExecutionResult<T>
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
ExecutionResult() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Exception |
getError()
Get the Exception generated during processing of a StepTask, or null
if the task completed successfully.
|
T |
getResult()
Get the result generated by the StepTask
|
void |
setError(java.lang.Exception error)
Set an exception, in the case that an error occurred during the
processing done by a StepTask
|
void |
setResult(T result)
Set the result generated by the StepTask
|
public void setError(java.lang.Exception error)
error - public java.lang.Exception getError()
public void setResult(T result)
result - the result generated by the StepTaskpublic T getResult()