public static enum Scheduler.Policy extends Enum<Scheduler.Policy>
Enum Constant and Description |
---|
FIXED_DELAY
Run a task repeatedly using a fixed delay between executions.
|
FIXED_RATE_SKIP_IF_LONG
Run a task repeatedly attempting to maintain a consistent rate of execution.
|
RUN_ONCE
Run a task once.
|
Modifier and Type | Method and Description |
---|---|
static Scheduler.Policy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Scheduler.Policy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Scheduler.Policy RUN_ONCE
public static final Scheduler.Policy FIXED_DELAY
public static final Scheduler.Policy FIXED_RATE_SKIP_IF_LONG
public static Scheduler.Policy[] values()
for (Scheduler.Policy c : Scheduler.Policy.values()) System.out.println(c);
public static Scheduler.Policy 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 null