Package io.quarkus.datasource.runtime
Interface DataSourcesBuildTimeConfig
-
@ConfigMapping(prefix="quarkus.datasource") @ConfigRoot(phase=BUILD_AND_RUN_TIME_FIXED) public interface DataSourcesBuildTimeConfig
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description @WithUnnamedKey("<default>") Map<String,DataSourceBuildTimeConfig>dataSources()Datasources.Optional<String>driver()Deprecated.default booleanhasNamedDataSources()booleanhealthEnabled()Whether or not an health check is published in case the smallrye-health extension is present.booleanmetricsEnabled()Whether or not datasource metrics are published in case a metrics extension is present.Optional<String>url()Deprecated.
-
-
-
Method Detail
-
dataSources
@ConfigDocSection @ConfigDocMapKey("datasource-name") @WithParentName @WithDefaults @WithUnnamedKey("<default>") @WithUnnamedKey("<default>") Map<String,DataSourceBuildTimeConfig> dataSources()
Datasources.
-
healthEnabled
@WithName("health.enabled") @WithDefault("true") boolean healthEnabled()Whether or not an health check is published in case the smallrye-health extension is present.This is a global setting and is not specific to a datasource.
-
metricsEnabled
@WithName("metrics.enabled") @WithDefault("false") boolean metricsEnabled()Whether or not datasource metrics are published in case a metrics extension is present.This is a global setting and is not specific to a datasource.
NOTE: This is different from the "jdbc.enable-metrics" property that needs to be set on the JDBC datasource level to enable collection of metrics for that datasource.
-
url
@Deprecated Optional<String> url()
Deprecated.Only here to detect configuration errors.This used to be runtime but we don't really care, we just want to catch invalid configurations.
-
driver
@Deprecated Optional<String> driver()
Deprecated.Only here to detect configuration errors.
-
hasNamedDataSources
default boolean hasNamedDataSources()
-
-