org.apache.servicemix.http.jetty
Class JettyContextManager.ThreadPoolWrapper

java.lang.Object
  extended by org.mortbay.component.AbstractLifeCycle
      extended by org.apache.servicemix.http.jetty.JettyContextManager.ThreadPoolWrapper
All Implemented Interfaces:
org.mortbay.component.LifeCycle, org.mortbay.thread.ThreadPool
Enclosing class:
JettyContextManager

protected class JettyContextManager.ThreadPoolWrapper
extends org.mortbay.component.AbstractLifeCycle
implements org.mortbay.thread.ThreadPool


Constructor Summary
protected JettyContextManager.ThreadPoolWrapper()
           
 
Method Summary
 boolean dispatch(Runnable job)
           
 int getIdleThreads()
           
 int getThreads()
           
 boolean isLowOnThreads()
           
 void join()
           
 
Methods inherited from class org.mortbay.component.AbstractLifeCycle
doStart, doStop, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JettyContextManager.ThreadPoolWrapper

protected JettyContextManager.ThreadPoolWrapper()
Method Detail

dispatch

public boolean dispatch(Runnable job)
Specified by:
dispatch in interface org.mortbay.thread.ThreadPool

getIdleThreads

public int getIdleThreads()
Specified by:
getIdleThreads in interface org.mortbay.thread.ThreadPool

getThreads

public int getThreads()
Specified by:
getThreads in interface org.mortbay.thread.ThreadPool

join

public void join()
          throws InterruptedException
Specified by:
join in interface org.mortbay.thread.ThreadPool
Throws:
InterruptedException

isLowOnThreads

public boolean isLowOnThreads()
Specified by:
isLowOnThreads in interface org.mortbay.thread.ThreadPool


Copyright © 2005-2008 Apache Software Foundation. All Rights Reserved.