Class R2dbcHealthConfiguration

java.lang.Object
io.micronaut.r2dbc.config.R2dbcHealthConfiguration

@ConfigurationProperties("endpoints.health.r2dbc") public class R2dbcHealthConfiguration extends Object
Configuration for R2DBC Health Indicator.
Since:
2.1.0
Author:
Anton Kurako (GoodforGod)
See Also:
  • Constructor Details

    • R2dbcHealthConfiguration

      public R2dbcHealthConfiguration()
  • Method Details

    • isEnabled

      public boolean isEnabled()
      Returns:
      true if health indicator is enabled
    • getHealthQuery

      public Optional<String> getHealthQuery(String metadataName)
      Parameters:
      metadataName - name of r2dbc driver from metadata ConnectionFactoryMetadata.getName()
      Returns:
      SQL query to return version for specified database
      See Also: