Interface EventJournalMapEvent<K,​V>

Type Parameters:
K - the entry key type
V - the entry value type

public interface EventJournalMapEvent<K,​V>
The event for the map event journal.
  • Method Summary

    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.
    EntryEventType getType()
    Returns the event type.
  • 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 is null while in other cases it may be non-null. For instance, when the event is of type EntryEventType.ADDED, the new value is non-null but when it is of type EntryEventType.REMOVED, the value is null.
      Returns:
      the entry new value
    • getOldValue

      V getOldValue()
      Returns the old value for the event entry. In some cases this is null while in other cases it may be non-null. For instance, when the event is of type EntryEventType.ADDED, the old value is null but when it is of type EntryEventType.REMOVED, the value is non-null.
      Returns:
      the entry old value
    • getType

      EntryEventType getType()
      Returns the event type.
      Returns:
      the event type