Class ConnectionFactoryHealthIndicator

java.lang.Object
org.springframework.boot.actuate.health.AbstractReactiveHealthIndicator
org.springframework.boot.actuate.r2dbc.ConnectionFactoryHealthIndicator
All Implemented Interfaces:
ReactiveHealthContributor, ReactiveHealthIndicator

public class ConnectionFactoryHealthIndicator extends AbstractReactiveHealthIndicator
A HealthIndicator to validate a R2DBC ConnectionFactory.
Since:
2.3.0
Author:
Mark Paluch, Stephane Nicoll
  • Constructor Details

    • ConnectionFactoryHealthIndicator

      public ConnectionFactoryHealthIndicator(io.r2dbc.spi.ConnectionFactory connectionFactory)
      Create a new ConnectionFactoryHealthIndicator using the specified ConnectionFactory and no validation query.
      Parameters:
      connectionFactory - the connection factory
      See Also:
      • Connection.validate(ValidationDepth)
    • ConnectionFactoryHealthIndicator

      public ConnectionFactoryHealthIndicator(io.r2dbc.spi.ConnectionFactory connectionFactory, String validationQuery)
      Create a new ConnectionFactoryHealthIndicator using the specified ConnectionFactory and validation query.
      Parameters:
      connectionFactory - the connection factory
      validationQuery - the validation query, can be null to use connection validation
  • Method Details