Package io.quarkus.agroal.runtime
Interface DataSourceJdbcBuildTimeConfig
public interface DataSourceJdbcBuildTimeConfig
-
Method Summary
Modifier and TypeMethodDescription@WithConverter(io.quarkus.runtime.configuration.TrimmedStringConverter.class) Optional<String>driver()The datasource driver class namebooleanenabled()If we create a JDBC datasource for this datasource.Enable datasource metrics collection.booleanEnable OpenTelemetry JDBC instrumentation.booleantracing()Enable JDBC tracing.Whether we want to use regular JDBC transactions, XA, or disable all transactional capabilities.
-
Method Details
-
enabled
@WithParentName @WithDefault("true") boolean enabled()If we create a JDBC datasource for this datasource. -
driver
@WithConverter(io.quarkus.runtime.configuration.TrimmedStringConverter.class) @WithConverter(io.quarkus.runtime.configuration.TrimmedStringConverter.class) Optional<String> driver()The datasource driver class name -
transactions
Whether we want to use regular JDBC transactions, XA, or disable all transactional capabilities.When enabling XA you will need a driver implementing
XADataSource. -
enableMetrics
Enable datasource metrics collection. If unspecified, collecting metrics will be enabled by default if a metrics extension is active. -
tracing
@WithDefault("false") boolean tracing()Enable JDBC tracing. Disabled by default. -
telemetry
@WithDefault("false") boolean telemetry()Enable OpenTelemetry JDBC instrumentation.
-