public final class ExecutorStats
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private long |
activeThreads |
private long |
completedTaskCount |
private int |
corePoolSize |
private int |
largestPoolSize |
private int |
poolSize |
private int |
queueSize |
private long |
taskCount |
Constructor and Description |
---|
ExecutorStats() |
Modifier and Type | Method and Description |
---|---|
long |
getActiveThreads()
Returns the approximate number of threads that are actively
executing tasks.
|
long |
getCompletedTaskCount()
Returns the approximate total number of tasks that have
completed execution.
|
int |
getCorePoolSize()
Returns the core number of threads.
|
int |
getLargestPoolSize()
Returns the largest number of threads that have ever
simultaneously been in the pool.
|
int |
getPoolSize()
Returns the current number of threads in the pool.
|
int |
getQueueSize()
Returns the current size of the queue.
|
long |
getTaskCount()
Returns the approximate total number of tasks that have ever been
scheduled for execution.
|
void |
setActiveThreads(long activeThreads) |
void |
setCompletedTaskCount(long completedTaskCount) |
void |
setCorePoolSize(int corePoolSize) |
void |
setLargestPoolSize(int largestPoolSize) |
void |
setPoolSize(int poolSize) |
void |
setQueueSize(int queueSize) |
void |
setTaskCount(long taskCount) |
private long taskCount
private long completedTaskCount
private long activeThreads
private int corePoolSize
private int poolSize
private int largestPoolSize
private int queueSize
public long getCompletedTaskCount()
public void setCompletedTaskCount(long completedTaskCount)
public int getCorePoolSize()
public void setCorePoolSize(int corePoolSize)
public int getPoolSize()
public void setPoolSize(int poolSize)
public int getLargestPoolSize()
public void setLargestPoolSize(int largestPoolSize)
public long getTaskCount()
public void setTaskCount(long taskCount)
public int getQueueSize()
public void setQueueSize(int queueSize)
public long getActiveThreads()
public void setActiveThreads(long activeThreads)