public class MonitoringThreadPoolExecutor
extends 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 | Description |
---|---|
MonitoringThreadPoolExecutor(int maximumPoolSize,
long keepAliveTime,
java.util.concurrent.TimeUnit unit) |
|
MonitoringThreadPoolExecutor(int maximumPoolSize,
long keepAliveTime,
java.util.concurrent.TimeUnit unit,
java.util.concurrent.RejectedExecutionHandler handler) |
Modifier and Type | Method | Description |
---|---|---|
void |
execute(java.lang.Runnable task) |
|
long |
getAverageQueueLatency() |
|
long |
getAverageTaskLatency() |
|
int |
getMaxActiveThreads() |
|
long |
getMaxQueueLatency() |
|
int |
getMaxQueueSize() |
|
long |
getMaxTaskLatency() |
|
long |
getTasks() |
|
void |
reset() |
invokeAll, invokeAll, invokeAny, invokeAny, newTaskFor, newTaskFor, submit, submit, submit
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
afterExecute, allowCoreThreadTimeOut, allowsCoreThreadTimeOut, awaitTermination, beforeExecute, finalize, getActiveCount, getCompletedTaskCount, getCorePoolSize, getKeepAliveTime, getLargestPoolSize, getMaximumPoolSize, getPoolSize, getQueue, getRejectedExecutionHandler, getTaskCount, getThreadFactory, isShutdown, isTerminated, isTerminating, prestartAllCoreThreads, prestartCoreThread, purge, remove, setCorePoolSize, setKeepAliveTime, setMaximumPoolSize, setRejectedExecutionHandler, setThreadFactory, shutdown, shutdownNow, terminated, toString
public MonitoringThreadPoolExecutor(int maximumPoolSize, long keepAliveTime, java.util.concurrent.TimeUnit unit)
public MonitoringThreadPoolExecutor(int maximumPoolSize, long keepAliveTime, java.util.concurrent.TimeUnit unit, java.util.concurrent.RejectedExecutionHandler handler)
public void reset()
public long getTasks()
public long getMaxTaskLatency()
public long getAverageTaskLatency()
public long getMaxQueueLatency()
public long getAverageQueueLatency()
public int getMaxQueueSize()
public int getMaxActiveThreads()
public void execute(java.lang.Runnable task)
execute
in class java.util.concurrent.ThreadPoolExecutor
Copyright © 2008–2017 The CometD Project. All rights reserved.