Interface AgroalDataSourceConfiguration


public interface AgroalDataSourceConfiguration
Configuration of an AgroalDataSource.
Author:
Luis Barreiro
  • Method Details

    • connectionPoolConfiguration

      AgroalConnectionPoolConfiguration connectionPoolConfiguration()
      Configuration of the pool of this DataSource
    • 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.