Package io.agroal.api.configuration
Interface AgroalDataSourceConfiguration
-
public interface AgroalDataSourceConfigurationConfiguration of an AgroalDataSource.- Author:
- Luis Barreiro
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classAgroalDataSourceConfiguration.DataSourceImplementationAvailable implementations of AgroalDataSource.static interfaceAgroalDataSourceConfiguration.MetricsEnabledListener
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AgroalConnectionPoolConfigurationconnectionPoolConfiguration()Configuration of the pool of this DataSourceAgroalDataSourceConfiguration.DataSourceImplementationdataSourceImplementation()Actual AgroalDataSource implementation.booleanmetricsEnabled()If 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 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.
-
-