Package io.ebean.datasource
Interface DataSourcePoolListener
-
public interface DataSourcePoolListener
ADataSourcePoollistener which allows you to hook on the borrow/return process of getting or returning connections from the pool.In the configuration use the poolListener key to configure which listener to use.
Example: datasource.ora10.poolListener=my.very.fancy.PoolListener
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonAfterBorrowConnection(Connection connection)Called after a connection has been retrieved from the connection poolvoidonBeforeReturnConnection(Connection connection)Called before a connection will be put back to the connection pool
-
-
-
Method Detail
-
onAfterBorrowConnection
void onAfterBorrowConnection(Connection connection)
Called after a connection has been retrieved from the connection pool
-
onBeforeReturnConnection
void onBeforeReturnConnection(Connection connection)
Called before a connection will be put back to the connection pool
-
-