public enum SchedulerPoolFactory extends java.lang.Enum<SchedulerPoolFactory>
| Modifier and Type | Field and Description |
|---|---|
static boolean |
PURGE_ENABLED
Indicates the periodic purging of the ScheduledExecutorService is enabled.
|
static int |
PURGE_PERIOD_SECONDS
Indicates the purge period of the ScheduledExecutorServices created by create().
|
| Modifier and Type | Method and Description |
|---|---|
static java.util.concurrent.ScheduledExecutorService |
create(java.util.concurrent.ThreadFactory factory)
Creates a ScheduledExecutorService with the given factory.
|
static void |
shutdown()
Stops the purge thread.
|
static void |
start()
Starts the purge thread if not already started.
|
static SchedulerPoolFactory |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SchedulerPoolFactory[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final boolean PURGE_ENABLED
public static final int PURGE_PERIOD_SECONDS
public static SchedulerPoolFactory[] values()
for (SchedulerPoolFactory c : SchedulerPoolFactory.values()) System.out.println(c);
public static SchedulerPoolFactory 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 static void start()
public static void shutdown()
public static java.util.concurrent.ScheduledExecutorService create(java.util.concurrent.ThreadFactory factory)
factory - the thread factory