public class ExecutorStatistics extends Object
The executor statistics contain the number of threads used, the maximum number configured, the queued task count, the executed task count and the aborted task count.
Constructor and Description |
---|
ExecutorStatistics(ThreadPoolTaskExecutor executor)
Create a new statistics instance for the
executor . |
Modifier and Type | Method and Description |
---|---|
Long |
getAbortedTaskCount()
Get the number of aborted tasks.
|
Long |
getCompletedTaskCount()
Get the number of completed tasks.
|
Integer |
getMaxPoolSize()
Get the executor's max pool size.
|
Integer |
getPoolSize()
Get the executor's pool size.
|
Integer |
getQueueSize()
Get the executor's queued task size.
|
void |
incrementAbortedTaskCount()
Increase the number of aborted tasks.
|
public ExecutorStatistics(ThreadPoolTaskExecutor executor)
executor
.executor
- The executor we're holding the statistics for.public void incrementAbortedTaskCount()
public Integer getPoolSize()
public Integer getMaxPoolSize()
public Integer getQueueSize()
public Long getCompletedTaskCount()
public Long getAbortedTaskCount()