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:SchedulerReturns a future that will submit the task to the given executor after the given delay.- Specified by:
schedulein interfaceScheduler- Parameters:
executor- the executor to run the taskcommand- the runnable task to scheduledelay- how long to delay, in units ofunitunit- aTimeUnitdetermining how to interpret thedelayparameter- Returns:
- a scheduled future representing pending submission of the task
-