Module com.elex_project.chronos
Package com.elex_project.chronos
Interface ChronosBuilder.ExecutionStep
- Enclosing interface:
- ChronosBuilder
public static interface ChronosBuilder.ExecutionStep
-
Method Summary
Modifier and TypeMethodDescriptiononFailure(ChronosListener.Failure listener) Life cycle callbacksonStart(ChronosListener.Start listener) Life cycle callbacksonSuccess(ChronosListener.Success listener) Life cycle callbacksschedule()Done.startAfter(long delay, TimeUnit unit) delay before the first executionwithPolicy(OverlapPolicy policy) OverlapPolicy
-
Method Details
-
startAfter
delay before the first execution- Parameters:
delay- longunit- TimeUnit- Returns:
- keep going to the next step
-
withPolicy
OverlapPolicy- Parameters:
policy- OverlapPolicy. Default: CONCURRENT- Returns:
- keep going to the next step
-
onStart
Life cycle callbacks- Parameters:
listener- ChronosListener.Start- Returns:
- keep going to the next step
-
onSuccess
Life cycle callbacks- Parameters:
listener- ChronosListener.Success- Returns:
- keep going to the next step
-
onFailure
Life cycle callbacks- Parameters:
listener- ChronosListener.Failure- Returns:
- keep going to the next step
-
schedule
String schedule()Done. Schedule the task- Returns:
- taskId
-