Class GuardedScheduler
java.lang.Object
com.github.benmanes.caffeine.cache.GuardedScheduler
- All Implemented Interfaces:
Scheduler
,Serializable
-
Field Details
-
logger
-
serialVersionUID
static final long serialVersionUID- See Also:
-
delegate
-
-
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 interfaceScheduler
- Parameters:
executor
- the executor to run the taskcommand
- the runnable task to scheduledelay
- how long to delay, in units ofunit
unit
- aTimeUnit
determining how to interpret thedelay
parameter- Returns:
- a scheduled future representing pending submission of the task
-