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<? extends AgroalPoolInterceptor> list) |
onMetricsEnabled
void init()
Connection getConnection() throws SQLException
SQLException
AgroalConnectionPoolConfiguration getConfiguration()
AgroalDataSourceMetrics getMetrics()
AgroalDataSourceListener[] getListeners()
List<AgroalPoolInterceptor> getPoolInterceptors()
void setPoolInterceptors(Collection<? extends AgroalPoolInterceptor> list)
void returnConnectionHandler(ConnectionHandler handler) throws SQLException
SQLException
void flushPool(AgroalDataSource.FlushMode mode)
void close()
close
in interface AutoCloseable
long activeCount()
long maxUsedCount()
long availableCount()
long awaitingCount()
void resetMaxUsedCount()
Copyright © 2021 JBoss by Red Hat. All rights reserved.