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

pack-priv final Enum SystemScheduler

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

extends Enum<SystemScheduler>
implements Scheduler
Class Inheritance
All Implemented Interfaces
com.github.benmanes.caffeine.cache.Scheduler

Field Summary

Modifier and TypeField and Description
public static final SystemScheduler

Constructor Summary

AccessConstructor and Description
private

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.
public static SystemScheduler
public static SystemScheduler[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

INSTANCEback to summary
public static final SystemScheduler INSTANCE

Constructor Detail

SystemSchedulerback to summary
private SystemScheduler()

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
valueOfback to summary
public static SystemScheduler valueOf(String name)
valuesback to summary
public static SystemScheduler[] values()