public interface Pool extends AgroalDataSourceConfiguration.MetricsEnabledListener, AutoCloseable
| Modifier and Type | Method and Description |
|---|---|
long |
activeCount() |
long |
availableCount() |
long |
awaitingCount() |
void |
close() |
int |
defaultJdbcIsolationLevel() |
void |
flushPool(AgroalDataSource.FlushMode mode) |
AgroalConnectionPoolConfiguration |
getConfiguration() |
Connection |
getConnection() |
AgroalDataSourceListener[] |
getListeners() |
AgroalDataSourceMetrics |
getMetrics() |
List<AgroalPoolInterceptor> |
getPoolInterceptors() |
void |
init() |
boolean |
isHealthy(boolean newConnection) |
long |
maxUsedCount() |
void |
resetMaxUsedCount() |
void |
returnConnectionHandler(ConnectionHandler handler) |
void |
setPoolInterceptors(Collection<? extends AgroalPoolInterceptor> list) |
onMetricsEnabledvoid init()
Connection getConnection() throws SQLException
SQLExceptionAgroalConnectionPoolConfiguration getConfiguration()
AgroalDataSourceMetrics getMetrics()
AgroalDataSourceListener[] getListeners()
List<AgroalPoolInterceptor> getPoolInterceptors()
void setPoolInterceptors(Collection<? extends AgroalPoolInterceptor> list)
void returnConnectionHandler(ConnectionHandler handler) throws SQLException
SQLExceptionvoid flushPool(AgroalDataSource.FlushMode mode)
boolean isHealthy(boolean newConnection)
throws SQLException
SQLExceptionint defaultJdbcIsolationLevel()
void close()
close in interface AutoCloseablelong activeCount()
long maxUsedCount()
long availableCount()
long awaitingCount()
void resetMaxUsedCount()
Copyright © 2023 JBoss by Red Hat. All rights reserved.