类 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 newConnectionFactoryHealthIndicatorusing the specifiedConnectionFactoryand no validation query.ConnectionFactoryHealthIndicator(io.r2dbc.spi.ConnectionFactory connectionFactory, String validationQuery) Create a newConnectionFactoryHealthIndicatorusing the specifiedConnectionFactoryand 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 newConnectionFactoryHealthIndicatorusing the specifiedConnectionFactoryand no validation query.- 参数:
connectionFactory- the connection factory- 另请参阅:
-
ConnectionFactoryHealthIndicator
public ConnectionFactoryHealthIndicator(io.r2dbc.spi.ConnectionFactory connectionFactory, String validationQuery) Create a newConnectionFactoryHealthIndicatorusing the specifiedConnectionFactoryand validation query.- 参数:
connectionFactory- the connection factoryvalidationQuery- the validation query, can benullto use connection validation
-
-
方法详细资料
-
doHealthCheck
从类复制的说明:AbstractReactiveHealthIndicatorActual health check logic. If an error occurs in the pipeline, it will be handled automatically.- 指定者:
doHealthCheck在类中AbstractReactiveHealthIndicator- 参数:
builder- theHealth.Builderto report health status and details- 返回:
- a
Monothat provides theHealth
-