Interface MongoClientBuildTimeConfig


@ConfigMapping(prefix="quarkus.mongodb") @ConfigRoot(phase=BUILD_TIME) public interface MongoClientBuildTimeConfig
  • Method Summary

    Modifier and Type
    Method
    Description
    Dev Services.
    boolean
    If set to true, the default clients will always be created even if there are no injection points that use them
    boolean
    Whether a health check is published in case the smallrye-health extension is present.
    boolean
    Whether metrics are published in case a metrics extension is present.
    boolean
    Whether tracing spans of driver commands are sent in case the quarkus-opentelemetry extension is present.
  • Method Details

    • healthEnabled

      @WithDefault("true") @WithName("health.enabled") boolean healthEnabled()
      Whether a health check is published in case the smallrye-health extension is present.
    • metricsEnabled

      @WithName("metrics.enabled") @WithDefault("false") boolean metricsEnabled()
      Whether metrics are published in case a metrics extension is present.
    • forceDefaultClients

      @WithName("force-default-clients") @WithDefault("false") boolean forceDefaultClients()
      If set to true, the default clients will always be created even if there are no injection points that use them
    • tracingEnabled

      @WithName("tracing.enabled") @WithDefault("false") boolean tracingEnabled()
      Whether tracing spans of driver commands are sent in case the quarkus-opentelemetry extension is present.
    • devservices

      @ConfigDocSection(generated=true) DevServicesBuildTimeConfig devservices()
      Dev Services.

      Dev Services allows Quarkus to automatically start MongoDB in dev and test mode.