Class ExecutorServiceScheduler
java.lang.Object
com.github.benmanes.caffeine.cache.ExecutorServiceScheduler
- All Implemented Interfaces:
Scheduler, Serializable
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final Logger(package private) final ScheduledExecutorService(package private) static final long -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
logger
-
serialVersionUID
static final long serialVersionUID- See Also:
-
scheduledExecutorService
-
-
Constructor Details
-
ExecutorServiceScheduler
ExecutorServiceScheduler(ScheduledExecutorService scheduledExecutorService)
-
-
Method Details
-
schedule
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
-