Package org.infinispan.functional
Interface Listeners.ReadWriteListeners.ReadWriteListener<K,V>
- Enclosing interface:
Listeners.ReadWriteListeners<K,
V>
public static interface Listeners.ReadWriteListeners.ReadWriteListener<K,V>
Read-write listener
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
onCreate
(EntryView.ReadEntryView<K, V> created) Entry created event callback that receives aEntryView.ReadEntryView
of the created entry.default void
onModify
(EntryView.ReadEntryView<K, V> before, EntryView.ReadEntryView<K, V> after) Entry modify/update event callback that receivesEntryView.ReadEntryView
of the previous entry as first parameter, and theEntryView.ReadEntryView
of the new entry.default void
onRemove
(EntryView.ReadEntryView<K, V> removed) Entry removed event callback that receives aEntryView.ReadEntryView
of the removed entry.
-
Method Details
-
onCreate
Entry created event callback that receives aEntryView.ReadEntryView
of the created entry.- Parameters:
created
- created entry view
-
onModify
Entry modify/update event callback that receivesEntryView.ReadEntryView
of the previous entry as first parameter, and theEntryView.ReadEntryView
of the new entry.- Parameters:
before
- previous entry viewafter
- new entry view
-
onRemove
Entry removed event callback that receives aEntryView.ReadEntryView
of the removed entry.- Parameters:
removed
- removed entry view
-