org.jactr.core.concurrent
Class ExecutorServices

java.lang.Object
  extended by org.jactr.core.concurrent.ExecutorServices

public class ExecutorServices
extends java.lang.Object


Field Summary
static java.lang.String BACKGROUND
           
static java.lang.String INLINE
           
static java.util.concurrent.ExecutorService INLINE_EXECUTOR
           
static java.lang.String PERIODIC
           
 
Constructor Summary
ExecutorServices()
           
 
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
 

Field Detail

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
Constructor Detail

ExecutorServices

public ExecutorServices()
Method Detail

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