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