Package io.agroal.pool
Class ConnectionFactory
java.lang.Object
io.agroal.pool.ConnectionFactory
- All Implemented Interfaces:
TransactionIntegration.ResourceRecoveryFactory
public final class ConnectionFactory
extends Object
implements TransactionIntegration.ResourceRecoveryFactory
- Author:
- Luis Barreiro
-
Constructor Summary
ConstructorsConstructorDescriptionConnectionFactory(AgroalConnectionFactoryConfiguration configuration, AgroalDataSourceListener... listeners) -
Method Summary
Modifier and TypeMethodDescriptionintbooleanboolean
-
Constructor Details
-
ConnectionFactory
public ConnectionFactory(AgroalConnectionFactoryConfiguration configuration, AgroalDataSourceListener... listeners)
-
-
Method Details
-
defaultJdbcIsolationLevel
public int defaultJdbcIsolationLevel() -
createConnection
- Throws:
SQLException
-
hasRecoveryCredentials
public boolean hasRecoveryCredentials() -
isRecoverable
public boolean isRecoverable()- Specified by:
isRecoverablein interfaceTransactionIntegration.ResourceRecoveryFactory
-
getRecoveryConnection
- Specified by:
getRecoveryConnectionin interfaceTransactionIntegration.ResourceRecoveryFactory- Throws:
SQLException
-