com.caucho.server.thread
Class ResinThreadPoolExecutor

java.lang.Object
  extended by com.caucho.server.thread.ResinThreadPoolExecutor
All Implemented Interfaces:
java.util.concurrent.Executor

public class ResinThreadPoolExecutor
extends java.lang.Object
implements java.util.concurrent.Executor

A generic pool of threads available for Alarms and Work tasks.


Method Summary
 void execute(java.lang.Runnable task)
           
static ResinThreadPoolExecutor getThreadPool()
           
 void stopEnvironment(java.lang.ClassLoader env)
          Resets the thread pool, letting old threads drain.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getThreadPool

public static ResinThreadPoolExecutor getThreadPool()

execute

public void execute(java.lang.Runnable task)
Specified by:
execute in interface java.util.concurrent.Executor

stopEnvironment

public void stopEnvironment(java.lang.ClassLoader env)
Resets the thread pool, letting old threads drain.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object