public enum TaskManager extends java.lang.Enum<TaskManager>
| Enum Constant and Description |
|---|
SINGLETON |
| Modifier and Type | Method and Description |
|---|---|
void |
executeTask(java.lang.Runnable task)
Schedules a task for execution by a thread.
|
void |
shutdown()
Notification of shutdown to close all pooled threads.
|
static TaskManager |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TaskManager[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TaskManager SINGLETON
public static TaskManager[] values()
for (TaskManager c : TaskManager.values()) System.out.println(c);
public static TaskManager valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic void shutdown()
public void executeTask(java.lang.Runnable task)
task - Copyright © 2018. All Rights Reserved.