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 class
EntryEvent.Type
TheEntryEvent
types.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description BinaryEntry<K,V>
getEntry()
Return theentry
on which the action represented by thisEntryEvent
occurred.Set<BinaryEntry<K,V>>
getEntrySet()
Deprecated.since 14.1.2; usegetEntry()
and related methods insteaddefault K
getKey()
Return the key of the entry on which the action represented by thisEntryEvent
occurred.default V
getOriginalValue()
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 Detail
-
getEntrySet
@Deprecated Set<BinaryEntry<K,V>> 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
default K 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
default V 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
default V 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
-
-