类 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
-
构造器概要
构造器限定符构造器说明protected
Create a newAbstractReactiveHealthIndicator
instance with a defaulthealthCheckFailedMessage
.protected
AbstractReactiveHealthIndicator
(String healthCheckFailedMessage) Create a newAbstractReactiveHealthIndicator
instance with a specific message to log when the health check fails.protected
AbstractReactiveHealthIndicator
(Function<Throwable, String> healthCheckFailedMessage) Create a newAbstractReactiveHealthIndicator
instance with a specific message to log when the health check fails. -
方法概要
修饰符和类型方法说明protected abstract reactor.core.publisher.Mono
<Health> doHealthCheck
(Health.Builder builder) Actual health check logic.final reactor.core.publisher.Mono
<Health> health()
Provide the indicator of health.从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 org.springframework.boot.actuate.health.ReactiveHealthIndicator
getHealth
-
构造器详细资料
-
AbstractReactiveHealthIndicator
protected AbstractReactiveHealthIndicator()Create a newAbstractReactiveHealthIndicator
instance with a defaulthealthCheckFailedMessage
.- 从以下版本开始:
- 2.1.7
-
AbstractReactiveHealthIndicator
Create a newAbstractReactiveHealthIndicator
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
Create a newAbstractReactiveHealthIndicator
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
从接口复制的说明:ReactiveHealthIndicator
Provide the indicator of health.- 指定者:
health
在接口中ReactiveHealthIndicator
- 返回:
- a
Mono
that provides theHealth
-
doHealthCheck
Actual health check logic. If an error occurs in the pipeline, it will be handled automatically.- 参数:
builder
- theHealth.Builder
to report health status and details- 返回:
- a
Mono
that provides theHealth
-