org.xmlBlaster.util.dispatch
Class DispatchWorkerPool
java.lang.Object
org.xmlBlaster.util.dispatch.DispatchWorkerPool
public class DispatchWorkerPool
- extends java.lang.Object
Pool of threads doing a callback.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ME
public final java.lang.String ME
- See Also:
- Constant Field Values
glob
private Global glob
log
private static java.util.logging.Logger log
pool
private java.util.concurrent.ThreadPoolExecutor pool
threadPrio
private PropInt threadPrio
threadLifetime
private PropLong threadLifetime
maximumPoolSize
private PropInt maximumPoolSize
createThreads
private PropInt createThreads
isShutdown
private boolean isShutdown
poolId
private final java.lang.String poolId
- See Also:
- Constant Field Values
DispatchWorkerPool
public DispatchWorkerPool(Global glob)
- Parameters:
maxWorkers
- Maximum allowed callback threads
initialize
private void initialize()
isShutdown
public boolean isShutdown()
execute
public final boolean execute(java.lang.Runnable command)
throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
getStatistic
public java.lang.String getStatistic()
shutdownAfterProcessingCurrentlyQueuedTasks
public void shutdownAfterProcessingCurrentlyQueuedTasks()
- A shut down pool cannot be restarted
shutdown
public void shutdown()
getName
public java.lang.String getName()
- A human readable name of the listener for logging.
Enforced by I_RunlevelListener
Copyright © 1999-2014 The xmlBlaster.org contributers.