Package de.hybris.platform.jdbcwrapper
Class ConnectionErrorCheckingJDBCConnectionPool
- java.lang.Object
-
- de.hybris.platform.jdbcwrapper.JDBCConnectionPool
-
- de.hybris.platform.jdbcwrapper.ConnectionErrorCheckingJDBCConnectionPool
-
- Direct Known Subclasses:
JUnitConnectionErrorCheckingJDBCConnectionPool
public class ConnectionErrorCheckingJDBCConnectionPool extends JDBCConnectionPool
-
-
Constructor Summary
Constructors Constructor Description ConnectionErrorCheckingJDBCConnectionPool(JDBCConnectionFactory factory, org.apache.commons.pool2.impl.GenericObjectPoolConfig cfg, ConnectionStatus connectionStatus)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.sql.ConnectionborrowConnection()booleancannotConnect()protected booleanmayTestAgain(int intervalSeconds)-
Methods inherited from class de.hybris.platform.jdbcwrapper.JDBCConnectionPool
close, disableOracleStatementCaching, enableOracleStatementCaching, getMaxActive, getMaxPhysicalOpen, getNumActive, getNumIdle, getNumPhysicalOpen, invalidateConnection, isPoolClosed, resetOracleStatementCaching, resetStats, returnConnection, setDumpStackOnConnectionError, toString
-
-
-
-
Constructor Detail
-
ConnectionErrorCheckingJDBCConnectionPool
public ConnectionErrorCheckingJDBCConnectionPool(JDBCConnectionFactory factory, org.apache.commons.pool2.impl.GenericObjectPoolConfig cfg, ConnectionStatus connectionStatus)
-
-
Method Detail
-
cannotConnect
public boolean cannotConnect()
- Overrides:
cannotConnectin classJDBCConnectionPool
-
borrowConnection
public java.sql.Connection borrowConnection() throws java.lang.Exception- Overrides:
borrowConnectionin classJDBCConnectionPool- Throws:
java.lang.Exception
-
mayTestAgain
protected boolean mayTestAgain(int intervalSeconds)
-
-