Package io.agroal.pool
Interface Pool
- All Superinterfaces:
AgroalDataSourceConfiguration.MetricsEnabledListener,AutoCloseable,TransactionIntegration.ResourceRecoveryFactory
- All Known Implementing Classes:
ConnectionPool,Poolless
public interface Pool
extends AgroalDataSourceConfiguration.MetricsEnabledListener, AutoCloseable, TransactionIntegration.ResourceRecoveryFactory
- Author:
- Luis Barreiro
-
Method Summary
Modifier and TypeMethodDescriptionlonglonglongvoidclose()intvoidvoidinit()booleanisHealthy(boolean newConnection) longvoidvoidreturnConnectionHandler(ConnectionHandler handler) voidsetPoolInterceptors(Collection<? extends AgroalPoolInterceptor> list) Methods inherited from interface io.agroal.api.configuration.AgroalDataSourceConfiguration.MetricsEnabledListener
onMetricsEnabledMethods inherited from interface io.agroal.api.transaction.TransactionIntegration.ResourceRecoveryFactory
getRecoveryConnection, isRecoverable
-
Method Details
-
init
void init() -
getConnection
- Throws:
SQLException
-
getConfiguration
AgroalConnectionPoolConfiguration getConfiguration() -
getMetrics
AgroalDataSourceMetrics getMetrics() -
getListeners
AgroalDataSourceListener[] getListeners() -
getPoolInterceptors
List<AgroalPoolInterceptor> getPoolInterceptors() -
setPoolInterceptors
-
returnConnectionHandler
- Throws:
SQLException
-
flushPool
-
isHealthy
- Throws:
SQLException
-
defaultJdbcIsolationLevel
int defaultJdbcIsolationLevel() -
close
void close()- Specified by:
closein interfaceAutoCloseable
-
activeCount
long activeCount() -
maxUsedCount
long maxUsedCount() -
availableCount
long availableCount() -
awaitingCount
long awaitingCount() -
resetMaxUsedCount
void resetMaxUsedCount()
-