org.eclipse.jetty.http.spi
类 ThreadPoolExecutorAdapter

java.lang.Object
  继承者 org.eclipse.jetty.util.component.AbstractLifeCycle
      继承者 org.eclipse.jetty.http.spi.ThreadPoolExecutorAdapter
所有已实现的接口:
LifeCycle, ThreadPool

public class ThreadPoolExecutorAdapter
extends AbstractLifeCycle
implements ThreadPool

Jetty ThreadPool that bridges requests to a ThreadPoolExecutor.


嵌套类摘要
 
从类 org.eclipse.jetty.util.component.AbstractLifeCycle 继承的嵌套类/接口
AbstractLifeCycle.AbstractLifeCycleListener
 
从接口 org.eclipse.jetty.util.thread.ThreadPool 继承的嵌套类/接口
ThreadPool.SizedThreadPool
 
从接口 org.eclipse.jetty.util.component.LifeCycle 继承的嵌套类/接口
LifeCycle.Listener
 
字段摘要
 
从类 org.eclipse.jetty.util.component.AbstractLifeCycle 继承的字段
_listeners, FAILED, RUNNING, STARTED, STARTING, STOPPED, STOPPING
 
构造方法摘要
ThreadPoolExecutorAdapter(ThreadPoolExecutor executor)
           
 
方法摘要
 boolean dispatch(Runnable job)
           
protected  void doStart()
           
protected  void doStop()
           
 int getIdleThreads()
           
 int getThreads()
           
 boolean isFailed()
           
 boolean isLowOnThreads()
           
 boolean isRunning()
           
 boolean isStarted()
           
 boolean isStarting()
           
 boolean isStopped()
           
 boolean isStopping()
           
 void join()
          Blocks until the thread pool is stopped.
 
从类 org.eclipse.jetty.util.component.AbstractLifeCycle 继承的方法
addLifeCycleListener, getState, getState, removeLifeCycleListener, start, stop
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

ThreadPoolExecutorAdapter

public ThreadPoolExecutorAdapter(ThreadPoolExecutor executor)
方法详细信息

dispatch

public boolean dispatch(Runnable job)
指定者:
接口 ThreadPool 中的 dispatch

getIdleThreads

public int getIdleThreads()
指定者:
接口 ThreadPool 中的 getIdleThreads
返回:
The number of idle threads in the pool

getThreads

public int getThreads()
指定者:
接口 ThreadPool 中的 getThreads
返回:
The total number of threads currently in the pool

isLowOnThreads

public boolean isLowOnThreads()
指定者:
接口 ThreadPool 中的 isLowOnThreads
返回:
True if the pool is low on threads

join

public void join()
          throws InterruptedException
从接口 ThreadPool 复制的描述
Blocks until the thread pool is stopped.

指定者:
接口 ThreadPool 中的 join
抛出:
InterruptedException

isFailed

public boolean isFailed()
指定者:
接口 LifeCycle 中的 isFailed
覆盖:
AbstractLifeCycle 中的 isFailed
返回:
true if the component has failed to start or has failed to stop.

isRunning

public boolean isRunning()
指定者:
接口 LifeCycle 中的 isRunning
覆盖:
AbstractLifeCycle 中的 isRunning
返回:
true if the component is starting or has been started.

isStarted

public boolean isStarted()
指定者:
接口 LifeCycle 中的 isStarted
覆盖:
AbstractLifeCycle 中的 isStarted
返回:
true if the component has been started.
另请参见:
LifeCycle.start(), LifeCycle.isStarting()

isStarting

public boolean isStarting()
指定者:
接口 LifeCycle 中的 isStarting
覆盖:
AbstractLifeCycle 中的 isStarting
返回:
true if the component is starting.
另请参见:
LifeCycle.isStarted()

isStopped

public boolean isStopped()
指定者:
接口 LifeCycle 中的 isStopped
覆盖:
AbstractLifeCycle 中的 isStopped
返回:
true if the component has been stopped.
另请参见:
LifeCycle.stop(), LifeCycle.isStopping()

isStopping

public boolean isStopping()
指定者:
接口 LifeCycle 中的 isStopping
覆盖:
AbstractLifeCycle 中的 isStopping
返回:
true if the component is stopping.
另请参见:
LifeCycle.isStopped()

doStart

protected void doStart()
                throws Exception
覆盖:
AbstractLifeCycle 中的 doStart
抛出:
Exception

doStop

protected void doStop()
               throws Exception
覆盖:
AbstractLifeCycle 中的 doStop
抛出:
Exception


Copyright © 2013. All Rights Reserved.