Interface CacheEntryExpiredEvent<K,​V>

  • All Superinterfaces:
    CacheEntryEvent<K,​V>, Event<K,​V>, TransactionalEvent<K,​V>
    All Known Implementing Classes:
    ClusterEvent

    public interface CacheEntryExpiredEvent<K,​V>
    extends CacheEntryEvent<K,​V>
    This event subtype is passed in to any method annotated with CacheEntryExpired.

    The getValue() method returns the value of the entry before it expired. Note this value may be null if the entry expired from a cache store

    This is a post only event

    This event can be raised multiple times in sequence for a single expiration event if concurrent reads for the same key occur on different nodes. This should rarely happen though since this window is narrowed internally by the cache.

    Since:
    8.0
    Author:
    William Burns
    • Method Detail

      • getValue

        V getValue()
        Retrieves the value of the entry being expired. Note this event is raised after the value has been expired.

        Specified by:
        getValue in interface CacheEntryEvent<K,​V>
        Returns:
        the value of the entry expired