Module org.neo4j.ogm.drivers.api
Package org.neo4j.ogm.transaction
Interface TransactionManager.TransactionClosedListener
- Enclosing interface:
- TransactionManager
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A handler that can be called per entity during commit or rollback operations. It will we passed
to the callback of the
TransactionManager.close(Transaction, Consumer) operation. Transactions may
choose to call this or not depending on what actually did cause the closing of a transaction.-
Method Summary
Modifier and TypeMethodDescriptionvoidonTransactionClosed(Transaction.Status newsStatus, List<Object> entitiesRegistered) Indicate a commit event per entity
-
Method Details
-
onTransactionClosed
Indicate a commit event per entity- Parameters:
newsStatus- the new statusentitiesRegistered- A list of entities registered in the transaction being closed. A handler might choose to clean up their state.
-