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