public final class Poolless extends Object implements Pool
| Constructor and Description |
|---|
Poolless(AgroalConnectionPoolConfiguration configuration,
AgroalDataSourceListener... listeners) |
| Modifier and Type | Method and Description |
|---|---|
long |
activeCount() |
long |
availableCount() |
long |
awaitingCount() |
void |
close() |
ConnectionHandler |
createConnection() |
void |
destroyConnection(ConnectionHandler handler) |
void |
flushHandler(ConnectionHandler handler) |
void |
flushPool(AgroalDataSource.FlushMode mode) |
AgroalConnectionPoolConfiguration |
getConfiguration() |
Connection |
getConnection() |
AgroalDataSourceListener[] |
getListeners() |
MetricsRepository |
getMetrics() |
List<AgroalPoolInterceptor> |
getPoolInterceptors() |
void |
init() |
long |
maxUsedCount() |
void |
onMetricsEnabled(boolean metricsEnabled) |
void |
resetMaxUsedCount() |
void |
returnConnectionHandler(ConnectionHandler handler) |
void |
setMetricsRepository(MetricsRepository metricsRepository) |
void |
setPoolInterceptors(Collection<AgroalPoolInterceptor> list) |
public Poolless(AgroalConnectionPoolConfiguration configuration, AgroalDataSourceListener... listeners)
public AgroalConnectionPoolConfiguration getConfiguration()
getConfiguration in interface Poolpublic AgroalDataSourceListener[] getListeners()
getListeners in interface Poolpublic List<AgroalPoolInterceptor> getPoolInterceptors()
getPoolInterceptors in interface Poolpublic void setPoolInterceptors(Collection<AgroalPoolInterceptor> list)
setPoolInterceptors in interface Poolpublic void close()
close in interface Poolclose in interface AutoCloseablepublic Connection getConnection() throws SQLException
getConnection in interface PoolSQLExceptionpublic void returnConnectionHandler(ConnectionHandler handler) throws SQLException
returnConnectionHandler in interface PoolSQLExceptionpublic void onMetricsEnabled(boolean metricsEnabled)
onMetricsEnabled in interface AgroalDataSourceConfiguration.MetricsEnabledListenerpublic MetricsRepository getMetrics()
getMetrics in interface Poolpublic void setMetricsRepository(MetricsRepository metricsRepository)
public long activeCount()
activeCount in interface Poolpublic long availableCount()
availableCount in interface Poolpublic long maxUsedCount()
maxUsedCount in interface Poolpublic void resetMaxUsedCount()
resetMaxUsedCount in interface Poolpublic long awaitingCount()
awaitingCount in interface Poolpublic ConnectionHandler createConnection() throws SQLException
SQLExceptionpublic void flushPool(AgroalDataSource.FlushMode mode)
public void flushHandler(ConnectionHandler handler)
public void destroyConnection(ConnectionHandler handler)
Copyright © 2020 JBoss by Red Hat. All rights reserved.