xmlBlaster 2.2.0 client API

org.xmlBlaster.util.dispatch
Class DispatchWorkerPool

java.lang.Object
  extended by org.xmlBlaster.util.dispatch.DispatchWorkerPool

public class DispatchWorkerPool
extends java.lang.Object

Pool of threads doing a callback.


Nested Class Summary
protected static class DispatchWorkerPool.DeamonThreadFactory
           
 
Field Summary
 java.lang.String ME
           
 
Constructor Summary
DispatchWorkerPool(Global glob)
           
 
Method Summary
 boolean execute(java.lang.Runnable command)
           
 java.lang.String getName()
          A human readable name of the listener for logging.
 java.lang.String getStatistic()
           
 boolean isShutdown()
           
 void shutdown()
           
 void shutdownAfterProcessingCurrentlyQueuedTasks()
          A shut down pool cannot be restarted
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ME

public final java.lang.String ME
See Also:
Constant Field Values
Constructor Detail

DispatchWorkerPool

public DispatchWorkerPool(Global glob)
Parameters:
maxWorkers - Maximum allowed callback threads
Method Detail

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


xmlBlaster 2.2.0 client API

Copyright © 1999-2014 The xmlBlaster.org contributers.