Interface CacheEntryExpiredEvent<K,V>
-
- All Superinterfaces:
CacheEntryEvent<K,V>
,Event<K,V>
,TransactionalEvent<K,V>
public interface CacheEntryExpiredEvent<K,V> extends CacheEntryEvent<K,V>
This event subtype is passed in to any method annotated withCacheEntryExpired
. ThegetValue()
method returns the value of the entry before it expired. Note this value may be null if the entry expired from a cache storeThis 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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.infinispan.notifications.cachelistener.event.Event
Event.Type
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description V
getValue()
Retrieves the value of the entry being expired.-
Methods inherited from interface org.infinispan.notifications.cachelistener.event.CacheEntryEvent
getKey, getMetadata, isCurrentState
-
Methods inherited from interface org.infinispan.notifications.cachelistener.event.Event
getCache, getType, isPre
-
Methods inherited from interface org.infinispan.notifications.cachelistener.event.TransactionalEvent
getGlobalTransaction, isOriginLocal
-
-
-
-
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 interfaceCacheEntryEvent<K,V>
- Returns:
- the value of the entry expired
-
-