Interface Scheduler
- All Known Implementing Classes:
DelegatingScheduler
public interface Scheduler
Schedules executions.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SchedulerThe default scheduler used by Failsafe if no other scheduler orScheduledExecutorServiceis configured for an execution. -
Method Summary
Modifier and TypeMethodDescriptionstatic Schedulerof(ExecutorService executorService) Returns a Scheduler adapted from theexecutorService.static Schedulerof(ScheduledExecutorService scheduledExecutorService) Returns a Scheduler adapted from thescheduledExecutorService.Schedules thecallableto be called after thedelayfor theunit.
-
Field Details
-
DEFAULT
The default scheduler used by Failsafe if no other scheduler orScheduledExecutorServiceis configured for an execution.
-
-
Method Details
-
schedule
Schedules thecallableto be called after thedelayfor theunit. -
of
Returns a Scheduler adapted from thescheduledExecutorService. -
of
Returns a Scheduler adapted from theexecutorService.
-