类 AbstractReactiveHealthIndicator

java.lang.Object
org.springframework.boot.actuate.health.AbstractReactiveHealthIndicator
所有已实现的接口:
ReactiveHealthContributor, ReactiveHealthIndicator
直接已知子类:
CassandraDriverReactiveHealthIndicator, ConnectionFactoryHealthIndicator, CouchbaseReactiveHealthIndicator, ElasticsearchReactiveHealthIndicator, MongoReactiveHealthIndicator, Neo4jReactiveHealthIndicator, RedisReactiveHealthIndicator

public abstract class AbstractReactiveHealthIndicator extends Object implements ReactiveHealthIndicator
Base ReactiveHealthIndicator implementations that encapsulates creation of Health instance and error handling.
从以下版本开始:
2.0.0
作者:
Stephane Nicoll, Nikolay Rybak, Moritz Halbritter
  • 构造器详细资料

    • AbstractReactiveHealthIndicator

      protected AbstractReactiveHealthIndicator()
      Create a new AbstractReactiveHealthIndicator instance with a default healthCheckFailedMessage.
      从以下版本开始:
      2.1.7
    • AbstractReactiveHealthIndicator

      protected AbstractReactiveHealthIndicator(String healthCheckFailedMessage)
      Create a new AbstractReactiveHealthIndicator instance with a specific message to log when the health check fails.
      参数:
      healthCheckFailedMessage - the message to log on health check failure
      从以下版本开始:
      2.1.7
    • AbstractReactiveHealthIndicator

      protected AbstractReactiveHealthIndicator(Function<Throwable,String> healthCheckFailedMessage)
      Create a new AbstractReactiveHealthIndicator instance with a specific message to log when the health check fails.
      参数:
      healthCheckFailedMessage - the message to log on health check failure
      从以下版本开始:
      2.1.7
  • 方法详细资料

    • health

      public final reactor.core.publisher.Mono<Health> health()
      从接口复制的说明: ReactiveHealthIndicator
      Provide the indicator of health.
      指定者:
      health 在接口中 ReactiveHealthIndicator
      返回:
      a Mono that provides the Health
    • doHealthCheck

      protected abstract reactor.core.publisher.Mono<Health> doHealthCheck(Health.Builder builder)
      Actual health check logic. If an error occurs in the pipeline, it will be handled automatically.
      参数:
      builder - the Health.Builder to report health status and details
      返回:
      a Mono that provides the Health