org.jactr.core.concurrent
Class ExecutorServices
java.lang.Object
org.jactr.core.concurrent.ExecutorServices
public class ExecutorServices
- extends java.lang.Object
|
Method Summary |
static void |
addExecutor(java.lang.String name,
java.util.concurrent.ExecutorService service)
|
static java.util.concurrent.ExecutorService |
getExecutor(java.lang.String name)
|
static void |
removeExecutor(java.lang.String name)
|
static void |
shutdown(long millisecondsToWait)
shutdown and wait for the shutdown of all the executors that are currently
installed. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INLINE
public static final java.lang.String INLINE
- See Also:
- Constant Field Values
BACKGROUND
public static final java.lang.String BACKGROUND
- See Also:
- Constant Field Values
PERIODIC
public static final java.lang.String PERIODIC
- See Also:
- Constant Field Values
INLINE_EXECUTOR
public static final java.util.concurrent.ExecutorService INLINE_EXECUTOR
ExecutorServices
public ExecutorServices()
removeExecutor
public static void removeExecutor(java.lang.String name)
addExecutor
public static void addExecutor(java.lang.String name,
java.util.concurrent.ExecutorService service)
getExecutor
public static java.util.concurrent.ExecutorService getExecutor(java.lang.String name)
shutdown
public static void shutdown(long millisecondsToWait)
- shutdown and wait for the shutdown of all the executors that are currently
installed. if millisecondsToWait is 0, it will wait indefinitely