Interface EntryEvent<K,​V>

  • All Superinterfaces:
    Event<EntryEvent.Type>, Event<EntryEvent.Type>

    public interface EntryEvent<K,​V>
    extends Event<EntryEvent.Type>
    An EntryEvent captures information relating to actions performed on entries.

    Note that the semantics for interceptors handling pre-commit events (e.g. INSERTING, UPDATING, REMOVING) are analogous to the semantics for triggers. Interceptors are permitted to change the entry content before the operation is committed. Such interceptors execute after triggers and become the final arbiter of the entry value.

    Post-commit EntryEvents (e.g. INSERTED, UPDATED, REMOVED) do not allow interceptors to modify the entries' content.

    Since:
    Coherence 12.1.2
    Author:
    bo, nsa, rhan, mwj 2011.03.29
    • Method Detail

      • getEntrySet

        @Deprecated
        Set<BinaryEntry<K,​V>> getEntrySet()
        Deprecated.
        since 14.1.2; use getEntry() and related methods instead
        Return the immutable Set of entries on which the action represented by this EntryEvent occurred.
        Returns:
        the Set of entries represented by this event
      • getEntry

        BinaryEntry<K,​V> getEntry()
        Return the entry on which the action represented by this EntryEvent occurred.
        Returns:
        the entry represented by this event
      • getKey

        default K getKey()
        Return the key of the entry on which the action represented by this EntryEvent occurred.
        Returns:
        the key of the entry represented by this event
      • getValue

        default V getValue()
        Return the value of the entry on which the action represented by this EntryEvent occurred.
        Returns:
        the value of the entry represented by this event
      • getOriginalValue

        default V getOriginalValue()
        Return the original value of the entry on which the action represented by this EntryEvent occurred.
        Returns:
        the original value of the entry represented by this event