Class CassandraDriverReactiveHealthIndicator
java.lang.Object
org.springframework.boot.actuate.health.AbstractReactiveHealthIndicator
org.springframework.boot.actuate.cassandra.CassandraDriverReactiveHealthIndicator
- All Implemented Interfaces:
ReactiveHealthContributor
,ReactiveHealthIndicator
Simple implementation of a
ReactiveHealthIndicator
returning status information
for Cassandra data stores.- Since:
- 2.4.0
- Author:
- Alexandre Dutra, Tomasz Lelek
-
Constructor Summary
ConstructorDescriptionCassandraDriverReactiveHealthIndicator
(com.datastax.oss.driver.api.core.CqlSession session) Create a newCassandraDriverReactiveHealthIndicator
instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected reactor.core.publisher.Mono<Health>
doHealthCheck
(Health.Builder builder) Actual health check logic.Methods inherited from class org.springframework.boot.actuate.health.AbstractReactiveHealthIndicator
health
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.boot.actuate.health.ReactiveHealthIndicator
getHealth
-
Constructor Details
-
CassandraDriverReactiveHealthIndicator
public CassandraDriverReactiveHealthIndicator(com.datastax.oss.driver.api.core.CqlSession session) Create a newCassandraDriverReactiveHealthIndicator
instance.- Parameters:
session
- theCqlSession
.
-
-
Method Details
-
doHealthCheck
Description copied from class:AbstractReactiveHealthIndicator
Actual health check logic. If an error occurs in the pipeline, it will be handled automatically.- Specified by:
doHealthCheck
in classAbstractReactiveHealthIndicator
- Parameters:
builder
- theHealth.Builder
to report health status and details- Returns:
- a
Mono
that provides theHealth
-