Top Fields Constructors Methods
com.github.benmanes.caffeine.cache

pack-priv final Class GuardedScheduler

Located in compilation unit of com.github.benmanes.caffeine.cache.Scheduler.

extends Object
implements Scheduler, Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable, com.github.benmanes.caffeine.cache.Scheduler

Field Summary

Modifier and TypeField and Description
pack-priv final Scheduler
private static final System.Logger
private static final long

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public Future<?>
schedule(Executor
the executor to run the task
executor
,
Runnable
the runnable task to schedule
command
,
long
how long to delay, in units of unit
delay
,
TimeUnit
a TimeUnit determining how to interpret the delay parameter
unit
)

Implements com.github.benmanes.caffeine.cache.Scheduler.schedule.

Returns a future that will submit the task to the executor after the given delay.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

delegateback to summary
pack-priv final Scheduler delegate
Annotations
@SuppressWarnings:serial
loggerback to summary
private static final System.Logger logger
serialVersionUIDback to summary
private static final long serialVersionUID

Constructor Detail

GuardedSchedulerback to summary
pack-priv GuardedScheduler(Scheduler delegate)

Method Detail

scheduleback to summary
public Future<?> schedule(Executor executor, Runnable command, long delay, TimeUnit unit)

Implements com.github.benmanes.caffeine.cache.Scheduler.schedule.

Doc from com.github.benmanes.caffeine.cache.Scheduler.schedule.

Returns a future that will submit the task to the executor after the given delay.

Parameters
executor:Executor

the executor to run the task

command:Runnable

the runnable task to schedule

delay:long

how long to delay, in units of unit

unit:TimeUnit

a TimeUnit determining how to interpret the delay parameter

Returns:Future<?>

a scheduled future representing the pending submission of the task

Annotations
@Override