public class ExecutionResult extends Object
| Constructor and Description |
|---|
ExecutionResult(ResultMessage<?> result)
Initializes an
ExecutionResult from the given result. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Throwable |
getExceptionResult()
Get the execution result in case the result is an exception.
|
ResultMessage<?> |
getResult()
Return the execution result message.
|
int |
hashCode() |
boolean |
isExceptionResult()
Check if the result of the execution yielded an exception.
|
String |
toString() |
public ExecutionResult(ResultMessage<?> result)
ExecutionResult from the given result.result - the result message of an executed taskpublic ResultMessage<?> getResult()
public Throwable getExceptionResult()
null.null otherwise.public boolean isExceptionResult()
true if execution of the task gave rise to an exception, false otherwise.Copyright © 2010–2018. All rights reserved.