public interface Scheduler
DefaultScheduledFuture| Modifier and Type | Field and Description |
|---|---|
static Scheduler |
DEFAULT
The default scheduler used by Failsafe if no other scheduler or
ScheduledExecutorService is configured for
an execution. |
| Modifier and Type | Method and 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. |
ScheduledFuture<?> |
schedule(Callable<?> callable,
long delay,
TimeUnit unit)
Schedules the
callable to be called after the delay for the unit. |
static final Scheduler DEFAULT
ScheduledExecutorService is configured for
an execution.ScheduledFuture<?> schedule(Callable<?> callable, long delay, TimeUnit unit)
callable to be called after the delay for the unit.static Scheduler of(ScheduledExecutorService scheduledExecutorService)
scheduledExecutorService.static Scheduler of(ExecutorService executorService)
executorService.Copyright © 2022. All rights reserved.