org.eclipse.jetty.util.thread
接口 ThreadPool

所有已知子接口:
ThreadPool.SizedThreadPool
所有已知实现类:
ExecutorThreadPool, QueuedThreadPool, ThreadPoolExecutorAdapter

public interface ThreadPool

ThreadPool.


嵌套类摘要
static interface ThreadPool.SizedThreadPool
           
 
方法摘要
 boolean dispatch(Runnable job)
           
 int getIdleThreads()
           
 int getThreads()
           
 boolean isLowOnThreads()
           
 void join()
          Blocks until the thread pool is stopped.
 

方法详细信息

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.