Class ExecutorStatisticsView
- java.lang.Object
-
- org.hawaiiframework.async.statistics.ExecutorStatisticsView
-
public class ExecutorStatisticsView extends Object
A view on theExecutorStatistics
.
-
-
Constructor Summary
Constructors Constructor Description ExecutorStatisticsView(ExecutorStatistics statistics)
Create a view onExecutorStatistics
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Constructor Detail
-
ExecutorStatisticsView
public ExecutorStatisticsView(ExecutorStatistics statistics)
Create a view onExecutorStatistics
.
-
-
Method Detail
-
getPoolSize
public Integer getPoolSize()
Get the executor's pool size.- Returns:
- The current number of threads in use by the executor.
-
getMaxPoolSize
public Integer getMaxPoolSize()
Get the executor's max pool size.- Returns:
- The executor's max pool size.
-
getQueueSize
public Integer getQueueSize()
Get the executor's queued task size.- Returns:
- The number of queued tasks.
-
getCompletedTaskCount
public Long getCompletedTaskCount()
Get the number of completed tasks.- Returns:
- The executor's completed task count.
-
getAbortedTaskCount
public Long getAbortedTaskCount()
Get the number of aborted tasks.- Returns:
- The executor's aborted task count.
-
-