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 |
|---|---|
static <T,R> ExecutionResult<T,R> |
cancelled(T id,
String msg) |
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) |
LocalDateTime |
getEndTime() |
T |
getId() |
String |
getMessage() |
R |
getResult() |
LocalDateTime |
getStartTime() |
ExecutionStatus |
getStatus() |
int |
hashCode() |
boolean |
isCancelled() |
boolean |
isErrored() |
boolean |
isSkipped() |
boolean |
isSuccess() |
void |
setTimes(LocalDateTime startTime,
LocalDateTime endTime) |
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 static <T,R> ExecutionResult<T,R> cancelled(T id, 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 isCancelled()
public boolean isSkipped()
true if the result is skipped false if the result
is not skippedpublic String getMessage()
public void setTimes(LocalDateTime startTime, LocalDateTime endTime)
public LocalDateTime getStartTime()
public LocalDateTime getEndTime()
Copyright © 2016–2021 Dexecutor. All rights reserved.