Interface EntryEvent<K,V>
-
- All Superinterfaces:
Event<EntryEvent.Type>,Event<EntryEvent.Type>
public interface EntryEvent<K,V> extends Event<EntryEvent.Type>
An EntryEvent captures information relating to actions performed onentries.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 Modifier and Type Interface Description static classEntryEvent.TypeTheEntryEventtypes.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description BinaryEntry<K,V>getEntry()Return theentryon which the action represented by thisEntryEventoccurred.Set<BinaryEntry<K,V>>getEntrySet()Deprecated.since 14.1.2; usegetEntry()and related methods insteaddefault KgetKey()Return the key of the entry on which the action represented by thisEntryEventoccurred.default VgetOriginalValue()Return 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, nextInterceptor
-
Methods inherited from interface com.tangosol.net.events.partition.cache.Event
getBackingMapContext, getCacheName, getDispatcher, getManagerContext, getService
-
-
-
-
Method Detail
-
getEntrySet
@Deprecated Set<BinaryEntry<K,V>> 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
default K 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
default V 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
default V 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
-
-