Package org.apache.camel.support
Interface LRUCache<K,V>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcleanUp()Clears the cachelonggetEvicted()Gets the number of evicted elementslonggetHits()Gets the number of cache hits.intgetMaxCacheSize()Maximum cache capacity.longgetMisses()Gets the number of cache misses.voidresetStatistics()Reset usage statistics-
Methods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
-
-
-
Method Detail
-
cleanUp
void cleanUp()
Clears the cache
-
resetStatistics
void resetStatistics()
Reset usage statistics
-
getEvicted
long getEvicted()
Gets the number of evicted elements
-
getMisses
long getMisses()
Gets the number of cache misses.
-
getHits
long getHits()
Gets the number of cache hits.
-
getMaxCacheSize
int getMaxCacheSize()
Maximum cache capacity.
-
-