Class AbstractCacheEntryListener<T>

  • Type Parameters:
    T - the class of the data stored in the cache.
    All Implemented Interfaces:
    EventListener, CacheEntryListener<T>

    public abstract class AbstractCacheEntryListener<T>
    extends Object
    implements CacheEntryListener<T>
    Empty implementations of the CacheEntryListener interface to make it easy for code wanting to listen to events to only override the method(s) corresponding to the event(s) listened to.
    Since:
    8.1M1
    Version:
    $Id: eb7110887591d05ad557c687f968704dd6b2ab3a $
    • Constructor Detail

      • AbstractCacheEntryListener

        public AbstractCacheEntryListener()
    • Method Detail

      • cacheEntryRemoved

        public void cacheEntryRemoved​(CacheEntryEvent<T> event)
        Description copied from interface: CacheEntryListener
        Called when an existing value is removed from the cache.

        The event object contains the former entry.

        Specified by:
        cacheEntryRemoved in interface CacheEntryListener<T>
        Parameters:
        event - the event object containing all entry informations.
      • cacheEntryModified

        public void cacheEntryModified​(CacheEntryEvent<T> event)
        Description copied from interface: CacheEntryListener
        Called when an existing value is overwritten in the cache.

        The event object contains the new value.

        Specified by:
        cacheEntryModified in interface CacheEntryListener<T>
        Parameters:
        event - the event object containing all entry informations.