|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.concurrent.AbstractExecutorService
java.util.concurrent.ThreadPoolExecutor
org.mobicents.servlet.sip.core.dispatchers.ThreadPoolQueueExecutor
public class ThreadPoolQueueExecutor
This helper class simply exposes the queue of ThreadPoolExecutor class in order to be able to monitor stats from it. It can be used as a SingleThreadExecutor (executing tasks in a single thread sequentially) by passing threads=1 and maxThreads=1, otherwise it behaves like a chache thread pool.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.util.concurrent.ThreadPoolExecutor |
|---|
java.util.concurrent.ThreadPoolExecutor.AbortPolicy, java.util.concurrent.ThreadPoolExecutor.CallerRunsPolicy, java.util.concurrent.ThreadPoolExecutor.DiscardOldestPolicy, java.util.concurrent.ThreadPoolExecutor.DiscardPolicy |
| Constructor Summary | |
|---|---|
ThreadPoolQueueExecutor(int threads,
int maxThreads,
java.util.concurrent.BlockingQueue<java.lang.Runnable> workQueue)
|
|
| Method Summary | |
|---|---|
java.util.concurrent.BlockingQueue<java.lang.Runnable> |
getQueue()
|
| Methods inherited from class java.util.concurrent.ThreadPoolExecutor |
|---|
afterExecute, awaitTermination, beforeExecute, execute, finalize, getActiveCount, getCompletedTaskCount, getCorePoolSize, getKeepAliveTime, getLargestPoolSize, getMaximumPoolSize, getPoolSize, getRejectedExecutionHandler, getTaskCount, getThreadFactory, isShutdown, isTerminated, isTerminating, prestartAllCoreThreads, prestartCoreThread, purge, remove, setCorePoolSize, setKeepAliveTime, setMaximumPoolSize, setRejectedExecutionHandler, setThreadFactory, shutdown, shutdownNow, terminated |
| Methods inherited from class java.util.concurrent.AbstractExecutorService |
|---|
invokeAll, invokeAll, invokeAny, invokeAny, submit, submit, submit |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ThreadPoolQueueExecutor(int threads,
int maxThreads,
java.util.concurrent.BlockingQueue<java.lang.Runnable> workQueue)
| Method Detail |
|---|
public java.util.concurrent.BlockingQueue<java.lang.Runnable> getQueue()
getQueue in class java.util.concurrent.ThreadPoolExecutor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||