Package io.agroal.pool
Interface Pool
- All Superinterfaces:
AgroalDataSourceConfiguration.MetricsEnabledListener
,AutoCloseable
- All Known Implementing Classes:
ConnectionPool
,Poolless
- Author:
- Luis Barreiro
-
Method Summary
Modifier and TypeMethodDescriptionlong
long
long
void
close()
int
void
void
init()
boolean
isHealthy
(boolean newConnection) long
void
void
returnConnectionHandler
(ConnectionHandler handler) void
setPoolInterceptors
(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:
close
in interfaceAutoCloseable
-
activeCount
long activeCount() -
maxUsedCount
long maxUsedCount() -
availableCount
long availableCount() -
awaitingCount
long awaitingCount() -
resetMaxUsedCount
void resetMaxUsedCount()
-