Interface PersistenceEvents.Deleted
- All Superinterfaces:
Consumer<Collection<Entity>>, Observer<Collection<Entity>>, Sensor
- Enclosing interface:
PersistenceEvents
public static interface PersistenceEvents.Deleted
extends Observer<Collection<Entity>>, Consumer<Collection<Entity>>
Notified on delete.
-
Nested Class Summary
Nested classes/interfaces inherited from interface Observer
Observer.Builder<T,B> -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(Collection<Entity> deleted) Notifies that the given entities have been deleted.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 deleted.- Specified by:
acceptin interfaceConsumer<Collection<Entity>>- Parameters:
deleted- the deleted entities- Throws:
IllegalArgumentException- in case any of the entities is of the incorrect type
-