Interface CacheEntryEvent<K,V>
- All Known Subinterfaces:
CacheEntryCreatedEvent<K,
V>
public interface CacheEntryEvent<K,V>
- Since:
- 14.0
-
Method Summary
Modifier and TypeMethodDescriptiondefault Object
default boolean
default boolean
CacheEntry
<K, V> newEntry()
CacheEntry
<K, V> type()
-
Method Details
-
newEntry
CacheEntry<K,V> newEntry()- Returns:
- The entry after the event
-
previousEntry
CacheEntry<K,V> previousEntry()- Returns:
- The entry before the event
-
isCurrentState
default boolean isCurrentState()- Returns:
- True if this event is generated from an existing entry as the listener has
CacheListenerOptions.includeCurrentState()
set totrue
.
-
getSource
- Returns:
- an identifier of the transaction or cache invocation that triggered the event. In a transactional cache, it is the transaction object associated with the current call. In a non-transactional cache, it is an internal object that identifies the cache invocation.
-
isOriginLocal
default boolean isOriginLocal()- Returns:
- true if the call originated on the local cache instance; false if originated from a remote one.
-
type
CacheEntryEventType type()
-