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() |
int |
defaultJdbcIsolationLevel() |
void |
flushPool(AgroalDataSource.FlushMode mode) |
AgroalConnectionPoolConfiguration |
getConfiguration() |
Connection |
getConnection() |
AgroalDataSourceListener[] |
getListeners() |
MetricsRepository |
getMetrics() |
List<AgroalPoolInterceptor> |
getPoolInterceptors() |
void |
init() |
boolean |
isHealthy(boolean newConnection) |
long |
maxUsedCount() |
void |
onMetricsEnabled(boolean metricsEnabled) |
void |
resetMaxUsedCount() |
void |
returnConnectionHandler(ConnectionHandler handler) |
void |
setPoolInterceptors(Collection<? extends AgroalPoolInterceptor> list) |
public Poolless(AgroalConnectionPoolConfiguration configuration, AgroalDataSourceListener... listeners)
public AgroalConnectionPoolConfiguration getConfiguration()
getConfiguration in interface Poolpublic int defaultJdbcIsolationLevel()
defaultJdbcIsolationLevel in interface Poolpublic AgroalDataSourceListener[] getListeners()
getListeners in interface Poolpublic List<AgroalPoolInterceptor> getPoolInterceptors()
getPoolInterceptors in interface Poolpublic void setPoolInterceptors(Collection<? extends 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 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 boolean isHealthy(boolean newConnection)
throws SQLException
isHealthy in interface PoolSQLExceptionpublic void flushPool(AgroalDataSource.FlushMode mode)
Copyright © 2023 JBoss by Red Hat. All rights reserved.