A QueuedThreadPool subclass that monitors its own activity by recording queue and task statistics.
| Modifier and Type | Field and Description |
|---|---|
| private final SampleStatistic | |
| private final CounterStatistic | |
| private final SampleStatistic | |
| private final CounterStatistic |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | MonitoredQueuedThreadPool(int maxThreads, int minThreads, int idleTimeOut, BlockingQueue<Runnable> queue)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | execute(final Runnable
the runnable task job)Overrides org. Overrides default org. Implements java. |
| public long | |
| public long | |
| public int | |
| public long | |
| public int | |
| public long | |
| public long | |
| public void |
| queueLatencyStats | back to summary |
|---|---|
| private final SampleStatistic queueLatencyStats | |
| queueStats | back to summary |
|---|---|
| private final CounterStatistic queueStats | |
| taskLatencyStats | back to summary |
|---|---|
| private final SampleStatistic taskLatencyStats | |
| threadStats | back to summary |
|---|---|
| private final CounterStatistic threadStats | |
| MonitoredQueuedThreadPool | back to summary |
|---|---|
| public MonitoredQueuedThreadPool() | |
| MonitoredQueuedThreadPool | back to summary |
|---|---|
| public MonitoredQueuedThreadPool(int maxThreads) | |
| MonitoredQueuedThreadPool | back to summary |
|---|---|
| public MonitoredQueuedThreadPool(int maxThreads, int minThreads, int idleTimeOut, BlockingQueue<Runnable> queue) | |
| execute | back to summary |
|---|---|
| public void execute(final Runnable job) Overrides org. Overrides default org. Implements java. Doc from java. Executes the given command at some time in the future. The command
may execute in a new thread, in a pooled thread, or in the calling
thread, at the discretion of the | |
| getAverageQueueLatency | back to summary |
|---|---|
public long getAverageQueueLatency()
| |
| getAverageTaskLatency | back to summary |
|---|---|
public long getAverageTaskLatency()
| |
| getMaxBusyThreads | back to summary |
|---|---|
public int getMaxBusyThreads()
| |
| getMaxQueueLatency | back to summary |
|---|---|
public long getMaxQueueLatency()
| |
| getMaxQueueSize | back to summary |
|---|---|
public int getMaxQueueSize()
| |
| getMaxTaskLatency | back to summary |
|---|---|
public long getMaxTaskLatency()
| |
| getTasks | back to summary |
|---|---|
public long getTasks()
| |
| reset | back to summary |
|---|---|
| public void reset() Resets the statistics.
| |