Package org.cometd.benchmark
Class MonitoringQueuedThreadPool
- java.lang.Object
-
- org.eclipse.jetty.util.component.AbstractLifeCycle
-
- org.eclipse.jetty.util.thread.QueuedThreadPool
-
- org.cometd.benchmark.MonitoringQueuedThreadPool
-
- All Implemented Interfaces:
java.util.concurrent.Executor,org.eclipse.jetty.util.component.Dumpable,org.eclipse.jetty.util.component.LifeCycle,org.eclipse.jetty.util.thread.ThreadPool,org.eclipse.jetty.util.thread.ThreadPool.SizedThreadPool
public class MonitoringQueuedThreadPool extends org.eclipse.jetty.util.thread.QueuedThreadPool
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMonitoringQueuedThreadPool.MonitoringBlockingArrayQueue-
Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListener
-
-
Constructor Summary
Constructors Constructor Description MonitoringQueuedThreadPool(int maxThreads)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(java.lang.Runnable job)longgetAverageQueueLatency()longgetAverageTaskLatency()intgetMaxActiveThreads()longgetMaxQueueLatency()intgetMaxQueueSize()longgetMaxTaskLatency()longgetTasks()voidreset()-
Methods inherited from class org.eclipse.jetty.util.thread.QueuedThreadPool
doStart, doStop, dump, dump, dumpThread, getBusyThreads, getIdleThreads, getIdleTimeout, getMaxThreads, getMinThreads, getName, getQueue, getQueueSize, getThreads, getThreadsPriority, interruptThread, isDaemon, isDetailedDump, isLowOnThreads, join, newThread, runJob, setDaemon, setDetailedDump, setIdleTimeout, setMaxThreads, setMinThreads, setName, setQueue, setThreadsPriority, toString
-
-
-
-
Method Detail
-
execute
public void execute(java.lang.Runnable job)
- Specified by:
executein interfacejava.util.concurrent.Executor- Overrides:
executein classorg.eclipse.jetty.util.thread.QueuedThreadPool
-
reset
public void reset()
-
getTasks
public long getTasks()
-
getMaxActiveThreads
public int getMaxActiveThreads()
-
getMaxQueueSize
public int getMaxQueueSize()
-
getAverageQueueLatency
public long getAverageQueueLatency()
-
getMaxQueueLatency
public long getMaxQueueLatency()
-
getMaxTaskLatency
public long getMaxTaskLatency()
-
getAverageTaskLatency
public long getAverageTaskLatency()
-
-