Package io.permazen.core
Interface DeleteListener
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Listener interface for notifications that an object is about to be deleted.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onDelete
(Transaction tx, ObjId id) Receive notification of an object being deleted.
-
Method Details
-
onDelete
Receive notification of an object being deleted.Notifications are delivered in the same thread that is deleting object, before the delete actually occurs. At most one notification will be delivered for any object, even if
Transaction.delete()
is invoked reentrantly from within this listener.- Parameters:
tx
- associated transactionid
- the ID of the object about to be deleted
-