Package bitronix.tm.resource.jdbc
Interface ConnectionCustomizer
public interface ConnectionCustomizer
Listener of connections created by a PoolingDataSource. Implementations of this class must be serializable
and are handed raw, physical database Connections
- Author:
- Ludovic Orban
-
Method Summary
Modifier and TypeMethodDescriptionvoidonAcquire(Connection connection, String uniqueName) Called when the physical connection is created.voidonDestroy(Connection connection, String uniqueName) Called when the physical connection is destroyed.
-
Method Details
-
onAcquire
Called when the physical connection is created.- Parameters:
connection- the physical connection.uniqueName- the PoolingDataSource unique name.
-
onDestroy
Called when the physical connection is destroyed.- Parameters:
connection- the physical connection.uniqueName- the PoolingDataSource unique name.
-