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 Detail

      • getHashEntries

        Entry<K,​V>[] getHashEntries()
        Hash table entry array, used only by random eviction.
      • removeEntryForEviction

        void removeEntryForEviction​(Entry<K,​V> e)
        After removing the entry from the eviction data structure, remove it from the hash table.