
public enum PeriodicScheduleStrategy extends Enum<PeriodicScheduleStrategy>
Runnable on a FaultTolerantScheduler| Enum Constant and Description |
|---|
atFixedRate
Periodic action that becomes enabled first
after the given initial delay, and subsequently with the given
period; that is executions will commence after
initialDelay then initialDelay+period, then
initialDelay + 2 * period, and so on.
|
withFixedDelay
Periodic action that becomes enabled first
after the given initial delay, and subsequently with the
given delay between the termination of one execution and the
commencement of the next.
|
| Modifier and Type | Method and Description |
|---|---|
static PeriodicScheduleStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PeriodicScheduleStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PeriodicScheduleStrategy atFixedRate
public static final PeriodicScheduleStrategy withFixedDelay
public static PeriodicScheduleStrategy[] values()
for (PeriodicScheduleStrategy c : PeriodicScheduleStrategy.values()) System.out.println(c);
public static PeriodicScheduleStrategy 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 nullCopyright © 2016. All Rights Reserved.