Package com.atlassian.bamboo.event.spi
Interface ExecutorStats
- All Known Implementing Classes:
ExecutorStatsImpl
@Internal
@Immutable
public interface ExecutorStats
Class that exposes statistics of a
ThreadPoolExecutor
- Since:
- v4.0
-
Method Summary
Modifier and TypeMethodDescriptionint
How many threads are currently executingLIst ofRunnable
that current waiting to be runint
THe maximmum number of threadsA mapping of a ThreadName to a pair of Runnable and the date the runnable started running.
-
Method Details
-
getActiveCount
int getActiveCount()How many threads are currently executing- Returns:
-
getPoolSize
int getPoolSize()THe maximmum number of threads- Returns:
-
getEventsQueue
LIst ofRunnable
that current waiting to be run- Returns:
-
getThreadToRunnableMappings
A mapping of a ThreadName to a pair of Runnable and the date the runnable started running.- Returns:
-