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

pack-priv final Enum DisabledScheduler

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

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

Field Summary

Modifier and TypeField and Description
public static final DisabledScheduler

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public Future<Void>
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 DisabledScheduler
public static DisabledScheduler[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

INSTANCEback to summary
public static final DisabledScheduler INSTANCE

Constructor Detail

DisabledSchedulerback to summary
private DisabledScheduler()

Method Detail

scheduleback to summary
public Future<Void> 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<Void>

a scheduled future representing the pending submission of the task

Annotations
@Override
valueOfback to summary
public static DisabledScheduler valueOf(String name)
valuesback to summary
public static DisabledScheduler[] values()