public enum CacheScheduler extends Enum<CacheScheduler>
| Enum Constant and Description |
|---|
INSTANCE
当前实例
|
| Modifier and Type | Method and Description |
|---|---|
void |
schedule(Runnable task,
long delay) |
static CacheScheduler |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CacheScheduler[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CacheScheduler INSTANCE
public static CacheScheduler[] values()
for (CacheScheduler c : CacheScheduler.values()) System.out.println(c);
public static CacheScheduler valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic void schedule(Runnable task, long delay)
Copyright © 2019. All rights reserved.