@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()
ExecutorStats
getActiveCount
in interface ExecutorStats
public int getPoolSize()
ExecutorStats
getPoolSize
in interface ExecutorStats
@NotNull public List<Runnable> getEventsQueue()
ExecutorStats
Runnable
that current waiting to be rungetEventsQueue
in interface ExecutorStats
@NotNull public Map<String,Pair<Runnable,Date>> getThreadToRunnableMappings()
ExecutorStats
getThreadToRunnableMappings
in interface ExecutorStats
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.