Class ExecutorServiceScheduler
- java.lang.Object
-
- com.github.benmanes.caffeine.cache.ExecutorServiceScheduler
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static java.util.logging.Loggerlogger(package private) java.util.concurrent.ScheduledExecutorServicescheduledExecutorService(package private) static longserialVersionUID
-
Constructor Summary
Constructors Constructor Description ExecutorServiceScheduler(java.util.concurrent.ScheduledExecutorService scheduledExecutorService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.concurrent.Future<?>schedule(java.util.concurrent.Executor executor, java.lang.Runnable command, long delay, java.util.concurrent.TimeUnit unit)Returns a future that will submit the task to the given executor after the given delay.
-
-
-
Field Detail
-
logger
static final java.util.logging.Logger logger
-
serialVersionUID
static final long serialVersionUID
- See Also:
- Constant Field Values
-
scheduledExecutorService
final java.util.concurrent.ScheduledExecutorService scheduledExecutorService
-
-
Method Detail
-
schedule
public java.util.concurrent.Future<?> schedule(java.util.concurrent.Executor executor, java.lang.Runnable command, long delay, java.util.concurrent.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
-
-