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