@Experimental public static interface Listeners.WriteListeners.WriteListener<K,V>
Modifier and Type | Method and Description |
---|---|
void |
onWrite(EntryView.ReadEntryView<K,V> write)
Entry write event callback that receives a
EntryView.ReadEntryView
of the written entry. |
void onWrite(EntryView.ReadEntryView<K,V> write)
EntryView.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, hence EntryView.ReadEntryView.find()
will return
an empty Optional
instance, and
EntryView.ReadEntryView.get()
will throw
NoSuchElementException
.
write
- written entry viewCopyright © 2021 JBoss by Red Hat. All rights reserved.