|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jolbox.bonecp.AbstractConnectionStrategy
com.jolbox.bonecp.DefaultConnectionStrategy
public class DefaultConnectionStrategy
The normal getConnection() strategy class in use. Attempts to get a connection from one or more configured partitions.
| Field Summary |
|---|
| Fields inherited from class com.jolbox.bonecp.AbstractConnectionStrategy |
|---|
pool, terminationLock |
| Method Summary | |
|---|---|
protected Connection |
getConnectionInternal()
Actual call that returns a connection |
static DefaultConnectionStrategy |
getInstance(BoneCP pool)
Singleton pattern. |
ConnectionHandle |
pollConnection()
Obtains a connection using the configured strategy without blocking. |
void |
terminateAllConnections()
Closes off all connections in all partitions. |
| Methods inherited from class com.jolbox.bonecp.AbstractConnectionStrategy |
|---|
getConnection, postConnection, preConnection |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static DefaultConnectionStrategy getInstance(BoneCP pool)
pool -
public ConnectionHandle pollConnection()
ConnectionStrategy
pollConnection in interface ConnectionStrategypollConnection in class AbstractConnectionStrategy
protected Connection getConnectionInternal()
throws SQLException
AbstractConnectionStrategy
getConnectionInternal in class AbstractConnectionStrategySQLExceptionpublic void terminateAllConnections()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||