Interface Listeners.WriteListeners<K,​V>

  • All Known Subinterfaces:
    FunctionalNotifier<K,​V>, Listeners.ReadWriteListeners<K,​V>
    All Known Implementing Classes:
    Enclosing class:

    public static interface Listeners.WriteListeners<K,​V>
    Write listeners enable user to register listeners for any cache entry write events that happen in either a read-write or write-only functional map.

    Listeners for write events cannot distinguish between cache entry created and cache entry modify/update events because they don't have access to the previous value. All they know is that a new non-null entry has been written.

    However, write event listeners can distinguish between entry removals and cache entry create/modify-update events because they can query what the new entry's value via EntryView.ReadEntryView.find().