public enum TaskSchedulerType extends Enum<TaskSchedulerType>
TaskSchedulers.| Enum Constant and Description |
|---|
HASHEDWHEELTIMER
A
TaskScheduler based on a HashedWheelTimer. |
SCHEDULEDEXECUTORSERVICE
A
TaskScheduler based on a ScheduledExecutorService. |
| Modifier and Type | Method and Description |
|---|---|
static TaskSchedulerType |
parse(String name)
Return the
TaskSchedulerType with the specified name. |
static TaskSchedulerType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TaskSchedulerType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TaskSchedulerType SCHEDULEDEXECUTORSERVICE
public static final TaskSchedulerType HASHEDWHEELTIMER
TaskScheduler based on a HashedWheelTimer.public static TaskSchedulerType[] values()
for (TaskSchedulerType c : TaskSchedulerType.values()) System.out.println(c);
public static TaskSchedulerType 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 static TaskSchedulerType parse(String name)
TaskSchedulerType with the specified name. If the specified name
does not map to a TaskSchedulerType, then SCHEDULEDEXECUTORSERVICE
will be returned.name - the name of the TaskSchedulerTypeTaskSchedulerType or SCHEDULEDEXECUTORSERVICE