Class SimpleMapEvent<K,V>
java.lang.Object
com.tangosol.coherence.rest.events.SimpleMapEvent<K,V>
-
Constructor Summary
ConstructorsConstructorDescriptionDeserialization constructor.SimpleMapEvent(MapEvent<? extends K, ? extends V> evt) Construct SimpleMapEvent instance. -
Method Summary
Modifier and TypeMethodDescriptiongetCache()Return the cache name.getKey()Return the key associated with this event.Return the new value associated with this event.Return the old value associated with this event.intgetType()Return the event type.voidSet the cache name.voidSet the key for this event.voidsetNewValue(V newValue) Set the new value.voidsetOldValue(V oldValue) Set the old value.voidsetType(int nType) Set the event type.toString()
-
Constructor Details
-
SimpleMapEvent
public SimpleMapEvent()Deserialization constructor. -
SimpleMapEvent
-
-
Method Details
-
getCache
-
setCache
-
getType
public int getType()Return the event type.The value is one of:
- INSERTED
- UPDATED
- DELETED
Unlike SSE event name, which is calculated for update operations when filter-based listeners are used, this attribute always represents the actual operation that occured on the underlying cache.
- Returns:
- the event type
-
setType
public void setType(int nType) Set the event type.- Parameters:
nType- the event type
-
getKey
-
setKey
-
getOldValue
Return the old value associated with this event.The old value represents a value deleted from or updated in a map. It is always null for "insert" notifications.
- Returns:
- the old value
-
setOldValue
-
getNewValue
Return the new value associated with this event.The new value represents a new value inserted into or updated in a map. It is always null for "delete" notifications.
- Returns:
- the new value
-
setNewValue
-
toString
-