com.ibm.as400.access
Interface ConnectionPoolListener
-
- All Superinterfaces:
- java.util.EventListener
public interface ConnectionPoolListener extends java.util.EventListener
The ConnectionPoolListener interface provides a listener interface for receiving Connection Pool events.
-
-
Method Summary
Methods Modifier and Type Method and Description void
connectionCreated(ConnectionPoolEvent event)
Invoked when a connection has been created.void
connectionExpired(ConnectionPoolEvent event)
Invoked when a connection is cleaned up by the maintenance thread because one or more of its properties has expired.void
connectionPoolClosed(ConnectionPoolEvent event)
Invoked when a pool has been closed.void
connectionReleased(ConnectionPoolEvent event)
Invoked when a connection has been given out.void
connectionReturned(ConnectionPoolEvent event)
Invoked when a connection has been returned.void
maintenanceThreadRun(ConnectionPoolEvent event)
Invoked when the maintenance thread runs.
-
-
-
Method Detail
-
connectionCreated
void connectionCreated(ConnectionPoolEvent event)
Invoked when a connection has been created.- Parameters:
event
- The connection pool event.
-
connectionExpired
void connectionExpired(ConnectionPoolEvent event)
Invoked when a connection is cleaned up by the maintenance thread because one or more of its properties has expired.- Parameters:
event
- The connection pool event.
-
connectionPoolClosed
void connectionPoolClosed(ConnectionPoolEvent event)
Invoked when a pool has been closed.- Parameters:
event
- The connection pool event.
-
connectionReleased
void connectionReleased(ConnectionPoolEvent event)
Invoked when a connection has been given out.- Parameters:
event
- The connection pool event.
-
connectionReturned
void connectionReturned(ConnectionPoolEvent event)
Invoked when a connection has been returned.- Parameters:
event
- The connection pool event.
-
maintenanceThreadRun
void maintenanceThreadRun(ConnectionPoolEvent event)
Invoked when the maintenance thread runs.- Parameters:
event
- The connection pool event.
-
-