org.eclipse.jetty.util.thread
接口 ThreadPool
- 所有已知子接口:
- ThreadPool.SizedThreadPool
- 所有已知实现类:
- ExecutorThreadPool, QueuedThreadPool, ThreadPoolExecutorAdapter
public interface ThreadPool
ThreadPool.
dispatch
boolean dispatch(Runnable job)
join
void join()
throws InterruptedException
- Blocks until the thread pool is
stopped.
- 抛出:
InterruptedException
getThreads
int getThreads()
- 返回:
- The total number of threads currently in the pool
getIdleThreads
int getIdleThreads()
- 返回:
- The number of idle threads in the pool
isLowOnThreads
boolean isLowOnThreads()
- 返回:
- True if the pool is low on threads
Copyright © 2013. All Rights Reserved.