@FunctionalInterface public interface SimpleFieldChangeListener
|Modifier and Type||Method and Description|
Receive notification of a change in the value of a
<V> void onSimpleFieldChange(Transaction tx, ObjId id, SimpleField<V> field, int path, NavigableSet<ObjId> referrers, V oldValue, V newValue)
SimpleFieldin an object.
Notifications are only delivered when the set of referring objects is non-empty.
Notifications are delivered in the same thread that made the change, before the outermost mutation operation returns.
V- Java type for
tx- associated transaction
id- the ID of the affected object (i.e., the object containing the field that changed)
field- the field that changed
path- path of reference fields (represented by storage IDs) that lead to
referrers- all objects that (indirectly) refer to the affected object via the
oldValue- the field's previous value
newValue- the field's new value
Copyright © 2020. All rights reserved.