public interface ConnectionStrategy
| Modifier and Type | Method and Description |
|---|---|
void |
cleanupConnection(ConnectionHandle oldHandle,
ConnectionHandle newHandle)
Give a chance to do some cleanups before closing off the connection.
|
Connection |
getConnection()
Obtains a connection using the configured strategy.
|
Connection |
pollConnection()
Obtains a connection using the configured strategy without blocking.
|
void |
terminateAllConnections()
Destroys all connections using this strategy.
|
Connection getConnection() throws SQLException
SQLException - on errorConnection pollConnection()
void terminateAllConnections()
void cleanupConnection(ConnectionHandle oldHandle, ConnectionHandle newHandle)
Copyright © 2009-2013 JolBox. All Rights Reserved.