Class ExecutionComplete
- java.lang.Object
-
- com.github.kagkarlsson.scheduler.task.ExecutionComplete
-
public class ExecutionComplete extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classExecutionComplete.Result
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ExecutionCompletefailure(Execution execution, Instant timeStarted, Instant timeDone, Throwable cause)Optional<Throwable>getCause()DurationgetDuration()ExecutiongetExecution()ExecutionComplete.ResultgetResult()InstantgetTimeDone()static ExecutionCompletesimulatedSuccess(Instant timeDone)Simulated ExecutionComplete used to generate first execution-time from a Schedule.static ExecutionCompletesuccess(Execution execution, Instant timeStarted, Instant timeDone)
-
-
-
Method Detail
-
success
public static ExecutionComplete success(Execution execution, Instant timeStarted, Instant timeDone)
-
failure
public static ExecutionComplete failure(Execution execution, Instant timeStarted, Instant timeDone, Throwable cause)
-
simulatedSuccess
public static ExecutionComplete simulatedSuccess(Instant timeDone)
Simulated ExecutionComplete used to generate first execution-time from a Schedule.
-
getExecution
public Execution getExecution()
-
getTimeDone
public Instant getTimeDone()
-
getDuration
public Duration getDuration()
-
getResult
public ExecutionComplete.Result getResult()
-
-