Constructor and Description |
---|
SimpleMapEvent()
Deserialization constructor.
|
SimpleMapEvent(MapEvent<? extends K,? extends V> evt)
Construct SimpleMapEvent instance.
|
Modifier and Type | Method and Description |
---|---|
String |
getCache()
Return the cache name.
|
K |
getKey()
Return the key associated with this event.
|
V |
getNewValue()
Return the new value associated with this event.
|
V |
getOldValue()
Return the old value associated with this event.
|
int |
getType()
Return the event type.
|
void |
setCache(String sCache)
Set the cache name.
|
void |
setKey(K key)
Set the key for this event.
|
void |
setNewValue(V newValue)
Set the new value.
|
void |
setOldValue(V oldValue)
Set the old value.
|
void |
setType(int nType)
Set the event type.
|
String |
toString() |
public String getCache()
public void setCache(String sCache)
sCache
- the cache namepublic int getType()
The value is one of:
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.
public void setType(int nType)
nType
- the event typepublic K getKey()
public void setKey(K key)
key
- the keypublic V getOldValue()
The old value represents a value deleted from or updated in a map. It is always null for "insert" notifications.
public void setOldValue(V oldValue)
oldValue
- the old valuepublic V getNewValue()
The new value represents a new value inserted into or updated in a map. It is always null for "delete" notifications.
public void setNewValue(V newValue)
newValue
- the new value