public interface ConnectionStrategy
| Modifier and Type | Method and Description |
|---|---|
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()
Copyright © 2009-2012 JolBox. All Rights Reserved.