Interface CacheEntryListener<T>

  • Type Parameters:
    T - the class of the data stored in the cache.
    All Superinterfaces:
    EventListener
    All Known Implementing Classes:
    AbstractCacheEntryListener

    public interface CacheEntryListener<T>
    extends EventListener
    Version:
    $Id: 6a7abbe8b83b613406868e10f0c314014282b400 $
    • Method Detail

      • cacheEntryAdded

        void cacheEntryAdded​(CacheEntryEvent<T> event)
        Called when a new value is inserted in the cache.
        Parameters:
        event - the event object containing all entry informations.
      • cacheEntryRemoved

        void cacheEntryRemoved​(CacheEntryEvent<T> event)
        Called when an existing value is removed from the cache.

        The event object contains the former entry.

        Parameters:
        event - the event object containing all entry informations.
      • cacheEntryModified

        void cacheEntryModified​(CacheEntryEvent<T> event)
        Called when an existing value is overwritten in the cache.

        The event object contains the new value.

        Parameters:
        event - the event object containing all entry informations.