public final class SchedulerPoolFactory extends Object
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 ScheduledExecutorService |
create(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.
|
public static final boolean PURGE_ENABLED
public static final int PURGE_PERIOD_SECONDS
public static void start()
public static void shutdown()
public static ScheduledExecutorService create(ThreadFactory factory)
factory
- the thread factoryCopyright © 2019. All rights reserved.