Interface CacheEntryExpiredEvent<K,V>
- All Superinterfaces:
CacheEntryEvent<K,
,V> Event<K,
,V> TransactionalEvent<K,
V>
- All Known Implementing Classes:
ClusterEvent
,EventImpl
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
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.infinispan.notifications.cachelistener.event.Event
Event.Type
-
Method Summary
Methods inherited from interface org.infinispan.notifications.cachelistener.event.CacheEntryEvent
getKey, getMetadata, getSource, 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 Details
-
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
-