Package org.apache.camel.support
Interface LRUCache<K,V>
- All Superinterfaces:
Map<K,
V>
A least-recently-used cache.
-
Nested Class Summary
-
Method Summary
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 Details
-
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.
-