public class ExecutorStatistics
extends java.lang.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(org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor executor)
Create a new statistics instance for the
executor . |
Modifier and Type | Method and Description |
---|---|
java.lang.Long |
getAbortedTaskCount()
Get the number of aborted tasks.
|
java.lang.Long |
getCompletedTaskCount()
Get the number of completed tasks.
|
java.lang.Integer |
getMaxPoolSize()
Get the executor's max pool size.
|
java.lang.Integer |
getPoolSize()
Get the executor's pool size.
|
java.lang.Integer |
getQueueSize()
Get the executor's queued task size.
|
void |
incrementAbortedTaskCount()
Increase the number of aborted tasks.
|
public ExecutorStatistics(org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor executor)
executor
.executor
- The executor we're holding the statistics for.public void incrementAbortedTaskCount()
public java.lang.Integer getPoolSize()
public java.lang.Integer getMaxPoolSize()
public java.lang.Integer getQueueSize()
public java.lang.Long getCompletedTaskCount()
public java.lang.Long getAbortedTaskCount()