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.
| 从类 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.