Interface PersistenceEvents.Inserted
- All Superinterfaces:
Consumer<Collection<Entity>>, Observer<Collection<Entity>>, Sensor
- Enclosing interface:
PersistenceEvents
public static interface PersistenceEvents.Inserted
extends Observer<Collection<Entity>>, Consumer<Collection<Entity>>
Notified on insert.
-
Nested Class Summary
Nested classes/interfaces inherited from interface Observer
Observer.Builder<T,B> -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(Collection<Entity> inserted) Notifies that the given entities have been inserted.Methods inherited from interface Observer
addConsumer, addWeakConsumer, observer, removeConsumer, removeWeakConsumer, sensor, when, whenMethods inherited from interface Sensor
addListener, addWeakListener, removeListener, removeWeakListener
-
Method Details
-
accept
Notifies that the given entities have been inserted.- Specified by:
acceptin interfaceConsumer<Collection<Entity>>- Parameters:
inserted- the inserted entities- Throws:
IllegalArgumentException- in case any of the entities is of the incorrect type
-