Interface CacheEventListener

All Superinterfaces:
EventListener
All Known Implementing Classes:
CacheEventLogger

public interface CacheEventListener extends EventListener
Interface for EventListeners on the cache. Implementations of this interface may be registered to listen for occurrences on the cache, such as items being evicted, etc.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    itemEvicted(String key, Object value)
    Notification that the provided key / value was evicted from the cache
    void
    itemExpired(String key, Object value)
    Notification that the provided key / value has expired from the cache
    void
    itemPut(String key, Object value)
    Notification that the provided key / value was put into the cache
    void
    itemRemoved(String key, Object value)
    Notification that the provided key / value was removed from the cache
    void
    itemUpdated(String key, Object value)
    Notification that the provided key / value was updated in the cache
  • Method Details

    • itemEvicted

      void itemEvicted(String key, Object value)
      Notification that the provided key / value was evicted from the cache
    • itemExpired

      void itemExpired(String key, Object value)
      Notification that the provided key / value has expired from the cache
    • itemPut

      void itemPut(String key, Object value)
      Notification that the provided key / value was put into the cache
    • itemRemoved

      void itemRemoved(String key, Object value)
      Notification that the provided key / value was removed from the cache
    • itemUpdated

      void itemUpdated(String key, Object value)
      Notification that the provided key / value was updated in the cache