Class GuardedScheduler

java.lang.Object
com.github.benmanes.caffeine.cache.GuardedScheduler
All Implemented Interfaces:
Scheduler, Serializable

final class GuardedScheduler extends Object implements Scheduler, Serializable
  • Field Details

  • Constructor Details

    • GuardedScheduler

      GuardedScheduler(Scheduler delegate)
  • Method Details

    • schedule

      public @NonNull Future<?> schedule(@NonNull Executor executor, @NonNull Runnable command, long delay, @NonNull TimeUnit unit)
      Description copied from interface: Scheduler
      Returns a future that will submit the task to the given executor after the given delay.
      Specified by:
      schedule in interface Scheduler
      Parameters:
      executor - the executor to run the task
      command - the runnable task to schedule
      delay - how long to delay, in units of unit
      unit - a TimeUnit determining how to interpret the delay parameter
      Returns:
      a scheduled future representing pending submission of the task