Package io.agroal.api.configuration
Interface AgroalDataSourceConfiguration
-
public interface AgroalDataSourceConfiguration
Configuration of an AgroalDataSource.- Author:
- Luis Barreiro
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
AgroalDataSourceConfiguration.DataSourceImplementation
Available implementations of AgroalDataSource.static interface
AgroalDataSourceConfiguration.MetricsEnabledListener
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AgroalConnectionPoolConfiguration
connectionPoolConfiguration()
Configuration of the pool of this DataSourceAgroalDataSourceConfiguration.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.
-
-
-
Method Detail
-
connectionPoolConfiguration
AgroalConnectionPoolConfiguration connectionPoolConfiguration()
Configuration of the pool of this DataSource
-
dataSourceImplementation
AgroalDataSourceConfiguration.DataSourceImplementation dataSourceImplementation()
Actual AgroalDataSource implementation. This allows flexibility to have different implementations of the Agroal API.
-
metricsEnabled
boolean metricsEnabled()
If this AgroalDataSource collects metrics.
-
setMetricsEnabled
void setMetricsEnabled(boolean metricsEnabled)
Enables or disables the collection of metrics.
-
registerMetricsEnabledListener
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.
-
-