Package org.infinispan.functional
Interface Listeners.WriteListeners.WriteListener<K,V>
-
- Enclosing interface:
- Listeners.WriteListeners<K,V>
@Experimental public static interface Listeners.WriteListeners.WriteListener<K,V>
Write-only listener.- Since:
- 8.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onWrite(EntryView.ReadEntryView<K,V> write)
Entry write event callback that receives aEntryView.ReadEntryView
of the written entry.
-
-
-
Method Detail
-
onWrite
void onWrite(EntryView.ReadEntryView<K,V> write)
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
-
-