public interface AgroalDataSourceConfiguration
Modifier and Type | Interface and Description |
---|---|
static class |
AgroalDataSourceConfiguration.DataSourceImplementation
Available implementations of AgroalDataSource.
|
static interface |
AgroalDataSourceConfiguration.MetricsEnabledListener |
Modifier and Type | Method and Description |
---|---|
AgroalConnectionPoolConfiguration |
connectionPoolConfiguration()
Configuration of the pool of this DataSource
|
AgroalDataSourceConfiguration.DataSourceImplementation |
dataSourceImplementation()
Actual AgroalDataSource implementation.
|
boolean |
metricsEnabled()
If this AgroalDataSource collects metrics.
|
void |
registerMetricsEnabledListener(AgroalDataSourceConfiguration.MetricsEnabledListener metricsEnabledListener)
Allows registration of a callback to be invoked each time there is a change on the status of metrics collection.
|
void |
setMetricsEnabled(boolean metricsEnabled)
Enables or disables the collection of metrics.
|
AgroalConnectionPoolConfiguration connectionPoolConfiguration()
AgroalDataSourceConfiguration.DataSourceImplementation dataSourceImplementation()
boolean metricsEnabled()
void setMetricsEnabled(boolean metricsEnabled)
void registerMetricsEnabledListener(AgroalDataSourceConfiguration.MetricsEnabledListener metricsEnabledListener)
Copyright © 2020 JBoss by Red Hat. All rights reserved.