Package io.grpc.rls

Interface LruCache.EvictionListener<K,​V>

    • Method Detail

      • onEviction

        void onEviction​(K key,
                        V value,
                        LruCache.EvictionType cause)
        Notifies the listener when any cache entry is evicted. Implementation can assume that this method is called serially. Implementation should be non blocking, for long running task consider offloading the task to Executor.