edu.sc.seis.fissuresUtil.cache
Class WorkerThreadPool

java.lang.Object
  extended by edu.sc.seis.fissuresUtil.cache.WorkerThreadPool

public class WorkerThreadPool
extends java.lang.Object


Field Summary
static int DEFAULT_MAX_QUEUE_SIZE
           
 
Constructor Summary
WorkerThreadPool(java.lang.String name, int numThreads)
           
WorkerThreadPool(java.lang.String name, int numThreads, int priority)
           
 
Method Summary
static WorkerThreadPool getDefaultPool()
           
 int getNumIdle()
           
 int getNumWaiting()
           
 void invokeLater(java.lang.Runnable runnable)
           
 boolean isEmployed()
           
 void setMaxQueueSize(int i)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_MAX_QUEUE_SIZE

public static final int DEFAULT_MAX_QUEUE_SIZE
See Also:
Constant Field Values
Constructor Detail

WorkerThreadPool

public WorkerThreadPool(java.lang.String name,
                        int numThreads)

WorkerThreadPool

public WorkerThreadPool(java.lang.String name,
                        int numThreads,
                        int priority)
Method Detail

setMaxQueueSize

public void setMaxQueueSize(int i)

invokeLater

public void invokeLater(java.lang.Runnable runnable)

getDefaultPool

public static WorkerThreadPool getDefaultPool()

getNumWaiting

public int getNumWaiting()

getNumIdle

public int getNumIdle()

isEmployed

public boolean isEmployed()