T - Type of Node/Task IDR - Type of Node/Task resultpublic final class ExecutionResult<T,R> extends Object implements Serializable
| Constructor and Description |
|---|
ExecutionResult(T id,
R result,
ExecutionStatus status) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
void |
errored()
Marks the execution result as errored
|
static <T,R> ExecutionResult<T,R> |
errored(T id,
R result,
String msg) |
T |
getId() |
String |
getMessage() |
R |
getResult() |
ExecutionStatus |
getStatus() |
int |
hashCode() |
boolean |
isErrored() |
boolean |
isSkipped() |
boolean |
isSuccess() |
void |
skipped()
Marks the execution result as skipped
|
static <T,R> ExecutionResult<T,R> |
success(T id,
R result) |
String |
toString() |
public ExecutionResult(T id, R result, ExecutionStatus status)
public static <T,R> ExecutionResult<T,R> success(T id, R result)
public static <T,R> ExecutionResult<T,R> errored(T id, R result, String msg)
public T getId()
public R getResult()
public ExecutionStatus getStatus()
public void errored()
public void skipped()
public boolean isSuccess()
true if the result is success false if the result
is not successpublic boolean isErrored()
true if the result is error false if the result
is not errorpublic boolean isSkipped()
true if the result is skipped false if the result
is not skippedpublic String getMessage()
Copyright © 2016–2018 Dexecutor. All rights reserved.