Package org.apache.camel.spi
Interface AsyncProcessorAwaitManager.Statistics
- Enclosing interface:
AsyncProcessorAwaitManager
public static interface AsyncProcessorAwaitManager.Statistics
Utilization statistics of this manager.
-
Method Summary
Modifier and TypeMethodDescriptionlongThe highest duration time in millis.longThe average duration time in millis.longThe lowest duration time in millis.longTotal number of threads that has been blockedlongTotal number of threads that has been forced interruptedlongThe total duration time in millis.booleanWhether statistics is enabled.voidreset()Reset the countersvoidsetStatisticsEnabled(boolean statisticsEnabled) Sets whether statistics is enabled.
-
Method Details
-
getThreadsBlocked
long getThreadsBlocked()Total number of threads that has been blocked -
getThreadsInterrupted
long getThreadsInterrupted()Total number of threads that has been forced interrupted -
getTotalDuration
long getTotalDuration()The total duration time in millis. -
getMinDuration
long getMinDuration()The lowest duration time in millis. -
getMaxDuration
long getMaxDuration()The highest duration time in millis. -
getMeanDuration
long getMeanDuration()The average duration time in millis. -
reset
void reset()Reset the counters -
isStatisticsEnabled
boolean isStatisticsEnabled()Whether statistics is enabled. -
setStatisticsEnabled
void setStatisticsEnabled(boolean statisticsEnabled) Sets whether statistics is enabled.- Parameters:
statisticsEnabled- true to enable
-