public final class GParsConfig
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static PoolFactory |
poolFactory |
private static boolean |
poolFactoryFlag |
private static TimerFactory |
timerFactory |
private static boolean |
timerFactoryFlag |
private static java.util.Collection<GeneralTimer> |
timers |
Constructor and Description |
---|
GParsConfig() |
Modifier and Type | Method and Description |
---|---|
static PoolFactory |
getPoolFactory() |
static TimerFactory |
getTimerFactory() |
static Pool |
retrieveDefaultPool()
If a pool factory has been set, it will be used to create a new thread pool.
|
static GeneralTimer |
retrieveDefaultTimer(java.lang.String name,
boolean daemon)
If a timer factory has been set, it will be used to create a timer.
|
static void |
setPoolFactory(PoolFactory pool) |
static void |
setTimerFactory(TimerFactory timerFactory) |
static void |
shutdown() |
private static volatile PoolFactory poolFactory
private static volatile TimerFactory timerFactory
private static volatile boolean poolFactoryFlag
private static volatile boolean timerFactoryFlag
private static final java.util.Collection<GeneralTimer> timers
public static void setPoolFactory(PoolFactory pool)
public static PoolFactory getPoolFactory()
public static Pool retrieveDefaultPool()
public static void setTimerFactory(TimerFactory timerFactory)
public static TimerFactory getTimerFactory()
public static GeneralTimer retrieveDefaultTimer(java.lang.String name, boolean daemon)
public static void shutdown()