Interface Cache.EvictionListener

Enclosing interface:
Cache<K,V>

public static interface Cache.EvictionListener
Interface for listening to cache eviction events.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Called when a key is evicted from the cache.
    void
    Called when a value is evicted from the cache.
  • Method Details

    • onKeyEviction

      void onKeyEviction()
      Called when a key is evicted from the cache.
    • onValueEviction

      void onValueEviction()
      Called when a value is evicted from the cache.