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