Class SLRUMap<K,​V>

  • Direct Known Subclasses:
    SLRUCache

    public class SLRUMap<K,​V>
    extends Object
    • Constructor Detail

      • SLRUMap

        public SLRUMap​(int protectedQueueSize,
                       int probationalQueueSize)
    • Method Detail

      • get

        @Nullable
        public V get​(K key)
      • put

        public void put​(K key,
                        V value)
      • onDropFromCache

        protected void onDropFromCache​(K key,
                                       V value)
      • remove

        public boolean remove​(K key)
      • clear

        public void clear()
      • getStableKey

        protected K getStableKey​(K key)