Interface EntryEvent<K,V>
- All Superinterfaces:
Event<EntryEvent.Type>
,Event<EntryEvent.Type>
An EntryEvent captures information relating to actions performed
on
entries
.
Note that the semantics for interceptors handling pre-commit events (e.g. INSERTING, UPDATING, REMOVING) are analogous to the semantics for triggers. Interceptors are permitted to change the entry content before the operation is committed. Such interceptors execute after triggers and become the final arbiter of the entry value.
Post-commit EntryEvents (e.g. INSERTED, UPDATED, REMOVED) do not allow interceptors to modify the entries' content.
- Since:
- Coherence 12.1.2
- Author:
- bo, nsa, rhan, mwj 2011.03.29
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetEntry()
Return theentry
on which the action represented by thisEntryEvent
occurred.Set
<BinaryEntry<K, V>> Deprecated.default K
getKey()
Return the key of the entry on which the action represented by thisEntryEvent
occurred.default V
Return the original value of the entry on which the action represented by thisEntryEvent
occurred.default V
getValue()
Return the value of the entry on which the action represented by thisEntryEvent
occurred.Methods inherited from interface com.tangosol.net.events.Event
getType, nextInterceptor
Methods inherited from interface com.tangosol.net.events.partition.cache.Event
getBackingMapContext, getCacheName, getDispatcher, getManagerContext, getService
-
Method Details
-
getEntrySet
Deprecated.since 14.1.2; usegetEntry()
and related methods insteadReturn the immutable Set ofentries
on which the action represented by thisEntryEvent
occurred.- Returns:
- the Set of entries represented by this event
-
getEntry
BinaryEntry<K,V> getEntry()Return theentry
on which the action represented by thisEntryEvent
occurred.- Returns:
- the entry represented by this event
-
getKey
Return the key of the entry on which the action represented by thisEntryEvent
occurred.- Returns:
- the key of the entry represented by this event
-
getValue
Return the value of the entry on which the action represented by thisEntryEvent
occurred.- Returns:
- the value of the entry represented by this event
-
getOriginalValue
Return the original value of the entry on which the action represented by thisEntryEvent
occurred.- Returns:
- the original value of the entry represented by this event
-
getEntry()
and related methods instead