Interface EventJournalCacheEvent<K,V>

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

public interface EventJournalCacheEvent<K,V>
The event for the cache event journal.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the key for the event entry.
    Returns the new value for the event entry.
    Returns the old value for the event entry.
    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 CacheEventType.CREATED, the new value is non-null but when it is of type CacheEventType.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 CacheEventType.CREATED, the old value is null but when it is of type CacheEventType.REMOVED, the value is non-null.
      Returns:
      the entry old value
    • getType

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