Package org.apache.camel.spi
Interface StreamCachingStrategy.Statistics
-
- Enclosing interface:
- StreamCachingStrategy
public static interface StreamCachingStrategy.StatisticsUtilization statistics of stream caching.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longgetCacheMemoryAverageSize()Gets the average number of bytes per cached stream for in-memory stream caches.longgetCacheMemoryCounter()Gets the counter for number of in-memoryStreamCachecreated.longgetCacheMemorySize()Gets the total accumulated number of bytes which has been stream cached for in-memory stream caches.longgetCacheSpoolAverageSize()Gets the average number of bytes per cached stream for spooled (not in-memory) stream caches.longgetCacheSpoolCounter()Gets the counter for number of spooled (not in-memory)StreamCachecreated.longgetCacheSpoolSize()Gets the total accumulated number of bytes which has been stream cached for spooled stream caches.booleanisStatisticsEnabled()Whether statistics is enabled.voidreset()Reset the countersvoidsetStatisticsEnabled(boolean statisticsEnabled)Sets whether statistics is enabled.
-
-
-
Method Detail
-
getCacheMemoryCounter
long getCacheMemoryCounter()
Gets the counter for number of in-memoryStreamCachecreated.
-
getCacheMemorySize
long getCacheMemorySize()
Gets the total accumulated number of bytes which has been stream cached for in-memory stream caches.
-
getCacheMemoryAverageSize
long getCacheMemoryAverageSize()
Gets the average number of bytes per cached stream for in-memory stream caches.
-
getCacheSpoolCounter
long getCacheSpoolCounter()
Gets the counter for number of spooled (not in-memory)StreamCachecreated.
-
getCacheSpoolSize
long getCacheSpoolSize()
Gets the total accumulated number of bytes which has been stream cached for spooled stream caches.
-
getCacheSpoolAverageSize
long getCacheSpoolAverageSize()
Gets the average number of bytes per cached stream for spooled (not in-memory) stream caches.
-
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
-
-