类 ConnectionFactoryHealthIndicator
java.lang.Object
org.springframework.boot.actuate.health.AbstractReactiveHealthIndicator
org.springframework.boot.actuate.r2dbc.ConnectionFactoryHealthIndicator
- 所有已实现的接口:
ReactiveHealthContributor
,ReactiveHealthIndicator
A
HealthIndicator
to validate a R2DBC ConnectionFactory
.- 从以下版本开始:
- 2.3.0
- 作者:
- Mark Paluch, Stephane Nicoll
-
构造器概要
构造器构造器说明ConnectionFactoryHealthIndicator
(io.r2dbc.spi.ConnectionFactory connectionFactory) Create a newConnectionFactoryHealthIndicator
using the specifiedConnectionFactory
and no validation query.ConnectionFactoryHealthIndicator
(io.r2dbc.spi.ConnectionFactory connectionFactory, String validationQuery) Create a newConnectionFactoryHealthIndicator
using the specifiedConnectionFactory
and validation query. -
方法概要
修饰符和类型方法说明protected final reactor.core.publisher.Mono
<Health> doHealthCheck
(Health.Builder builder) Actual health check logic.从类继承的方法 org.springframework.boot.actuate.health.AbstractReactiveHealthIndicator
health
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 org.springframework.boot.actuate.health.ReactiveHealthIndicator
getHealth
-
构造器详细资料
-
ConnectionFactoryHealthIndicator
public ConnectionFactoryHealthIndicator(io.r2dbc.spi.ConnectionFactory connectionFactory) Create a newConnectionFactoryHealthIndicator
using the specifiedConnectionFactory
and no validation query.- 参数:
connectionFactory
- the connection factory- 另请参阅:
-
ConnectionFactoryHealthIndicator
public ConnectionFactoryHealthIndicator(io.r2dbc.spi.ConnectionFactory connectionFactory, String validationQuery) Create a newConnectionFactoryHealthIndicator
using the specifiedConnectionFactory
and validation query.- 参数:
connectionFactory
- the connection factoryvalidationQuery
- the validation query, can benull
to use connection validation
-
-
方法详细资料
-
doHealthCheck
从类复制的说明:AbstractReactiveHealthIndicator
Actual health check logic. If an error occurs in the pipeline, it will be handled automatically.- 指定者:
doHealthCheck
在类中AbstractReactiveHealthIndicator
- 参数:
builder
- theHealth.Builder
to report health status and details- 返回:
- a
Mono
that provides theHealth
-