Package org.cache2k.core.eviction
Interface HeapCacheForEviction<K,V>
-
- All Known Implementing Classes:
HeapCache,IntHeapCache
public interface HeapCacheForEviction<K,V>Interface for the eviction to the heap cache hash. By separating this, the eviction code has no direct dependency on the heap cache and we can unit test the eviction without a complete cache.- Author:
- Jens Wilke
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Entry<K,V>[]getHashEntries()Hash table entry array, used only by random eviction.voidremoveEntryForEviction(Entry<K,V> e)After removing the entry from the eviction data structure, remove it from the hash table.
-