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


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.mortbay.component.LifeCycle
org.mortbay.component.LifeCycle.Listener
 
Field Summary
 
Fields inherited from class org.mortbay.component.AbstractLifeCycle
_listeners
 
Constructor Summary
protected JettyContextManager.ThreadPoolWrapper()
           
 
Method Summary
 boolean dispatch(java.lang.Runnable job)
           
 int getIdleThreads()
           
 int getThreads()
           
 boolean isLowOnThreads()
           
 void join()
           
 
Methods inherited from class org.mortbay.component.AbstractLifeCycle
addLifeCycleListener, doStart, doStop, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, 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(java.lang.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 java.lang.InterruptedException
Specified by:
join in interface org.mortbay.thread.ThreadPool
Throws:
java.lang.InterruptedException

isLowOnThreads

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


Copyright © 2005-2012 FuseSource. All Rights Reserved.