Package org.apache.camel.support
Interface LRUCache<K,V>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
cleanUp()
Clears the cachelong
getEvicted()
Gets the number of evicted elementslong
getHits()
Gets the number of cache hits.int
getMaxCacheSize()
Maximum cache capacity.long
getMisses()
Gets the number of cache misses.void
resetStatistics()
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.
-
-