@Immutable public class ExecutorStatsImpl extends Object implements ExecutorStats
| Constructor and Description |
|---|
ExecutorStatsImpl(EventLoggingThreadPoolExecutor executor) |
| Modifier and Type | Method and Description |
|---|---|
int |
getActiveCount()
How many threads are currently executing
|
List<Runnable> |
getEventsQueue()
LIst of
Runnable that current waiting to be run |
int |
getPoolSize()
THe maximmum number of threads
|
Map<String,Pair<Runnable,Date>> |
getThreadToRunnableMappings()
A mapping of a ThreadName to a pair of Runnable and the date the runnable started running.
|
public ExecutorStatsImpl(EventLoggingThreadPoolExecutor executor)
public int getActiveCount()
ExecutorStatsgetActiveCount in interface ExecutorStatspublic int getPoolSize()
ExecutorStatsgetPoolSize in interface ExecutorStats@NotNull public List<Runnable> getEventsQueue()
ExecutorStatsRunnable that current waiting to be rungetEventsQueue in interface ExecutorStats@NotNull public Map<String,Pair<Runnable,Date>> getThreadToRunnableMappings()
ExecutorStatsgetThreadToRunnableMappings in interface ExecutorStatsCopyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.