Class DelegatingScheduler

java.lang.Object
dev.failsafe.internal.util.DelegatingScheduler
All Implemented Interfaces:
Scheduler

public final class DelegatingScheduler extends Object implements Scheduler
A Scheduler implementation that schedules delays on an internal, common ScheduledExecutorService and executes tasks on either a provided ExecutorService, ForkJoinPool.commonPool(), or an internal ForkJoinPool instance. If no ExecutorService is supplied, the ForkJoinPool.commonPool() will be used, unless the common pool's parallelism is 1, then an internal ForkJoinPool with parallelism of 2 will be created and used.

Supports cancellation and interruption of ForkJoinPool tasks.