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
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptiongetEntry()Return theentryon which the action represented by thisEntryEventoccurred.Set<BinaryEntry<K, V>> Deprecated.default KgetKey()Return the key of the entry on which the action represented by thisEntryEventoccurred.default VReturn the original value of the entry on which the action represented by thisEntryEventoccurred.default VgetValue()Return the value of the entry on which the action represented by thisEntryEventoccurred.Methods inherited from interface com.tangosol.net.events.Event
getType, nextInterceptorMethods 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 ofentrieson which the action represented by thisEntryEventoccurred.- Returns:
- the Set of entries represented by this event
-
getEntry
BinaryEntry<K,V> getEntry()Return theentryon which the action represented by thisEntryEventoccurred.- Returns:
- the entry represented by this event
-
getKey
Return the key of the entry on which the action represented by thisEntryEventoccurred.- Returns:
- the key of the entry represented by this event
-
getValue
Return the value of the entry on which the action represented by thisEntryEventoccurred.- Returns:
- the value of the entry represented by this event
-
getOriginalValue
Return the original value of the entry on which the action represented by thisEntryEventoccurred.- Returns:
- the original value of the entry represented by this event
-
getEntry()and related methods instead