Package io.agroal.pool
Interface Pool
- All Superinterfaces:
AgroalDataSourceConfiguration.MetricsEnabledListener,AutoCloseable
- All Known Implementing Classes:
ConnectionPool,Poolless
- 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
onMetricsEnabled
-
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()
-