Class AgroalDataSourceConfigurationSupplier
- java.lang.Object
-
- io.agroal.api.configuration.supplier.AgroalDataSourceConfigurationSupplier
-
- All Implemented Interfaces:
Supplier<AgroalDataSourceConfiguration>
public class AgroalDataSourceConfigurationSupplier extends Object implements Supplier<AgroalDataSourceConfiguration>
Builder of AgroalDataSourceConfiguration.- Author:
- Luis Barreiro
-
-
Constructor Summary
Constructors Constructor Description AgroalDataSourceConfigurationSupplier()
-
Method Summary
-
-
-
Method Detail
-
connectionPoolConfiguration
public AgroalDataSourceConfigurationSupplier connectionPoolConfiguration(AgroalConnectionPoolConfiguration configuration)
Sets the configuration of the connection pool.
-
connectionPoolConfiguration
public AgroalDataSourceConfigurationSupplier connectionPoolConfiguration(Supplier<? extends AgroalConnectionPoolConfiguration> supplier)
Sets the configuration of the connection pool.
-
connectionPoolConfiguration
public AgroalDataSourceConfigurationSupplier connectionPoolConfiguration(Function<? super AgroalConnectionPoolConfigurationSupplier,? extends AgroalConnectionPoolConfigurationSupplier> function)
Modifies the configuration of the connection pool.
-
connectionPoolConfiguration
public AgroalConnectionPoolConfigurationSupplier connectionPoolConfiguration()
Allows access to the configuration builder for the connection pool.
-
dataSourceImplementation
public AgroalDataSourceConfigurationSupplier dataSourceImplementation(AgroalDataSourceConfiguration.DataSourceImplementation implementation)
Selects the AgroalDataSource implementation. The default is AGROAL.
-
metricsEnabled
public AgroalDataSourceConfigurationSupplier metricsEnabled()
Enables the collection of metrics.
-
metricsEnabled
public AgroalDataSourceConfigurationSupplier metricsEnabled(boolean metricsEnabled)
Enables or disables the collection of metrics. The default is false.
-
get
public AgroalDataSourceConfiguration get()
- Specified by:
get
in interfaceSupplier<AgroalDataSourceConfiguration>
-
-