- All Superinterfaces:
io.agroal.api.configuration.AgroalDataSourceConfiguration.MetricsEnabledListener,AutoCloseable,io.agroal.api.transaction.TransactionIntegration.ResourceRecoveryFactory
- All Known Implementing Classes:
ConnectionPool,Poolless
public interface Pool
extends io.agroal.api.configuration.AgroalDataSourceConfiguration.MetricsEnabledListener, AutoCloseable, io.agroal.api.transaction.TransactionIntegration.ResourceRecoveryFactory
- Author:
- Luis Barreiro
-
Method Summary
Modifier and TypeMethodDescriptionlonglonglongvoidclose()intvoidflushPool(io.agroal.api.AgroalDataSource.FlushMode mode) io.agroal.api.configuration.AgroalConnectionPoolConfigurationio.agroal.api.AgroalDataSourceListener[]io.agroal.api.AgroalDataSourceMetricsList<io.agroal.api.AgroalPoolInterceptor> voidinit()booleanisHealthy(boolean newConnection) longvoidvoidreturnConnectionHandler(ConnectionHandler handler) voidsetPoolInterceptors(Collection<? extends io.agroal.api.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
-
getReadOnlyConnection
- Throws:
SQLException
-
getConfiguration
io.agroal.api.configuration.AgroalConnectionPoolConfiguration getConfiguration() -
getMetrics
io.agroal.api.AgroalDataSourceMetrics getMetrics() -
getListeners
io.agroal.api.AgroalDataSourceListener[] getListeners() -
getPoolInterceptors
List<io.agroal.api.AgroalPoolInterceptor> getPoolInterceptors() -
setPoolInterceptors
-
returnConnectionHandler
- Throws:
SQLException
-
flushPool
void flushPool(io.agroal.api.AgroalDataSource.FlushMode mode) -
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()
-