Class ManagedConnection.CompletionListener
java.lang.Object
org.apache.tomcat.dbcp.dbcp2.managed.ManagedConnection.CompletionListener
- All Implemented Interfaces:
TransactionContextListener
- Enclosing class:
ManagedConnection<C extends Connection>
protected class ManagedConnection.CompletionListener
extends Object
implements TransactionContextListener
Delegates to
ManagedConnection.transactionComplete()
for transaction completion events.- Since:
- 2.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
afterCompletion
(TransactionContext completedContext, boolean committed) Occurs after the transaction commits or rolls back.
-
Constructor Details
-
CompletionListener
protected CompletionListener()
-
-
Method Details
-
afterCompletion
Description copied from interface:TransactionContextListener
Occurs after the transaction commits or rolls back.- Specified by:
afterCompletion
in interfaceTransactionContextListener
- Parameters:
completedContext
- the transaction context that completedcommitted
- true if the transaction committed; false otherwise
-