Interface CacheEntryListener<K,V>

All Known Implementing Classes:
CacheEntryAdapter

@PublicApi public interface CacheEntryListener<K,V>
A cache listener.
Since:
2.4
  • Method Details

    • onAdd

      void onAdd(@Nonnull CacheEntryEvent<K,V> event)
      Invoked when a key-value was added to the cache
      Parameters:
      event - the addition event
    • onEvict

      void onEvict(@Nonnull CacheEntryEvent<K,V> event)
      Invoked when a key-value was evicted from the cache
      Parameters:
      event - the eviction event
    • onRemove

      void onRemove(@Nonnull CacheEntryEvent<K,V> event)
      Invoked when a key-value was removed from the cache
      Parameters:
      event - the removal event
    • onUpdate

      void onUpdate(@Nonnull CacheEntryEvent<K,V> event)
      Invoked when key-value was changed in the cache
      Parameters:
      event - the update event