Class Transaction.ListenerSet

java.lang.Object
io.permazen.core.Transaction.ListenerSet
Enclosing class:
Transaction

public static final class Transaction.ListenerSet extends Object
A fixed collection of listeners (CreateListeners, DeleteListeners, SchemaChangeListeners, SimpleFieldChangeListeners, SetFieldChangeListeners, ListFieldChangeListeners, and MapFieldChangeListeners) that can be efficiently registered on a Transaction all at once.

To create an instance of this class, use Transaction.snapshotListeners() after registering the desired set of listeners. Once created, the instance can be used repeatedly to configured the same set of listeners on any other compatible Transaction via Transaction.setListeners(), where "compatible" means having the same SchemaBundle.