Package com.hazelcast.cache
Interface EventJournalCacheEvent<K,V>
-
- Type Parameters:
K
- the entry key typeV
- the entry value type
public interface EventJournalCacheEvent<K,V>
The event for the cache event journal.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description K
getKey()
Returns the key for the event entry.V
getNewValue()
Returns the new value for the event entry.V
getOldValue()
Returns the old value for the event entry.CacheEventType
getType()
Returns the event type.
-
-
-
Method Detail
-
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 isnull
while in other cases it may be non-null
. For instance, when the event is of typeCacheEventType.CREATED
, the new value is non-null
but when it is of typeCacheEventType.REMOVED
, the value isnull
.- Returns:
- the entry new value
-
getOldValue
V getOldValue()
Returns the old value for the event entry. In some cases this isnull
while in other cases it may be non-null
. For instance, when the event is of typeCacheEventType.CREATED
, the old value isnull
but when it is of typeCacheEventType.REMOVED
, the value is non-null
.- Returns:
- the entry old value
-
getType
CacheEventType getType()
Returns the event type.- Returns:
- the event type
-
-