Package io.agroal.api.configuration
Interface AgroalDataSourceConfiguration
public interface AgroalDataSourceConfiguration
Configuration of an AgroalDataSource.
- Author:
- Luis Barreiro
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumAvailable implementations of AgroalDataSource.static interface -
Method Summary
Modifier and TypeMethodDescriptionConfiguration of the pool of this DataSourceActual AgroalDataSource implementation.booleanIf this AgroalDataSource collects metrics.voidregisterMetricsEnabledListener(AgroalDataSourceConfiguration.MetricsEnabledListener metricsEnabledListener) Allows registration of a callback to be invoked each time there is a change on the status of metrics collection.voidsetMetricsEnabled(boolean metricsEnabled) Enables or disables the collection of metrics.
-
Method Details
-
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.
-