接口 HealthIndicator

所有超级接口:
HealthContributor
所有已知实现类:
AbstractHealthIndicator, AvailabilityStateHealthIndicator, CassandraDriverHealthIndicator, CouchbaseHealthIndicator, DataSourceHealthIndicator, DiskSpaceHealthIndicator, ElasticsearchRestClientHealthIndicator, HazelcastHealthIndicator, JmsHealthIndicator, LdapHealthIndicator, LivenessStateHealthIndicator, MailHealthIndicator, MongoHealthIndicator, Neo4jHealthIndicator, PingHealthIndicator, RabbitHealthIndicator, ReadinessStateHealthIndicator, RedisHealthIndicator, SslHealthIndicator
函数接口:
这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。

@FunctionalInterface public interface HealthIndicator extends HealthContributor
Strategy interface used to contribute Health to the results returned from the HealthEndpoint.
从以下版本开始:
1.0.0
作者:
Dave Syer, Phillip Webb
  • 方法概要

    修饰符和类型
    方法
    说明
    default Health
    getHealth(boolean includeDetails)
    Return an indication of health.
    Return an indication of health.
  • 方法详细资料

    • getHealth

      default Health getHealth(boolean includeDetails)
      Return an indication of health.
      参数:
      includeDetails - if details should be included or removed
      返回:
      the health
      从以下版本开始:
      2.2.0
    • health

      Health health()
      Return an indication of health.
      返回:
      the health