Interface Scheduler

All Known Implementing Classes:
DelegatingScheduler

public interface Scheduler
Schedules executions.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Scheduler
    The default scheduler used by Failsafe if no other scheduler or ScheduledExecutorService is configured for an execution.
  • Method Summary

    Modifier and Type
    Method
    Description
    static Scheduler
    of(ExecutorService executorService)
    Returns a Scheduler adapted from the executorService.
    static Scheduler
    of(ScheduledExecutorService scheduledExecutorService)
    Returns a Scheduler adapted from the scheduledExecutorService.
    schedule(Callable<?> callable, long delay, TimeUnit unit)
    Schedules the callable to be called after the delay for the unit.