@FunctionalInterface public interface DeleteListener
Transaction.addDeleteListener()
Modifier and Type | Method and Description |
---|---|
void |
onDelete(Transaction tx,
ObjId id)
Receive notification of an object being deleted.
|
void onDelete(Transaction tx, ObjId id)
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.
tx
- associated transactionid
- the ID of the object about to be deletedCopyright © 2022. All rights reserved.