Package org.infinispan.functional
Interface Listeners.WriteListeners.WriteListener<K,V>
- Enclosing interface:
Listeners.WriteListeners<K,
V>
Write-only listener.
- Since:
- 8.0
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onWrite
(EntryView.ReadEntryView<K, V> write) Entry write event callback that receives aEntryView.ReadEntryView
of the written entry.
-
Method Details
-
onWrite
Entry write event callback that receives aEntryView.ReadEntryView
of the written entry.For created or modified/updated events, the
EntryView.ReadEntryView
passed in will represent the newly stored entry, hence implementations will not be available to differentiate between created events vs modified/updated events.For removed events,
EntryView.ReadEntryView
passed in will represent an empty entry view, henceEntryView.ReadEntryView.find()
will return an emptyOptional
instance, andEntryView.ReadEntryView.get()
will throwNoSuchElementException
.- Parameters:
write
- written entry view
-