Package com.hazelcast.map
Interface EventJournalMapEvent<K,V>
- Type Parameters:
K- the entry key typeV- the entry value type
public interface EventJournalMapEvent<K,V>
The event for the map event journal.
-
Method Details
-
getKey
K getKey()Returns the key for the event entry.- Returns:
- the entry key
-
getNewValue
V getNewValue()Returns the new value for the event entry. In some cases this isnullwhile in other cases it may be non-null. For instance, when the event is of typeEntryEventType.ADDED, the new value is non-nullbut when it is of typeEntryEventType.REMOVED, the value isnull.- Returns:
- the entry new value
-
getOldValue
V getOldValue()Returns the old value for the event entry. In some cases this isnullwhile in other cases it may be non-null. For instance, when the event is of typeEntryEventType.ADDED, the old value isnullbut when it is of typeEntryEventType.REMOVED, the value is non-null.- Returns:
- the entry old value
-
getType
EntryEventType getType()Returns the event type.- Returns:
- the event type
-