Class PartitionLeaderAwarenessHealthIndicator
java.lang.Object
io.camunda.zeebe.gateway.impl.probes.health.PartitionLeaderAwarenessHealthIndicator
- All Implemented Interfaces:
org.springframework.boot.actuate.health.HealthContributor,org.springframework.boot.actuate.health.HealthIndicator
public class PartitionLeaderAwarenessHealthIndicator
extends Object
implements org.springframework.boot.actuate.health.HealthIndicator
Health indicator that signals whether the gateway is aware of partition leaders in the cluster.
If the gateway is not aware of any partition leaders, it cannot relay any requests
-
Constructor Summary
ConstructorsConstructorDescriptionPartitionLeaderAwarenessHealthIndicator(Supplier<Optional<BrokerClusterState>> clusterStateSupplier) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.boot.actuate.health.HealthIndicator
getHealth
-
Constructor Details
-
PartitionLeaderAwarenessHealthIndicator
public PartitionLeaderAwarenessHealthIndicator(Supplier<Optional<BrokerClusterState>> clusterStateSupplier)
-
-
Method Details
-
health
public org.springframework.boot.actuate.health.Health health()- Specified by:
healthin interfaceorg.springframework.boot.actuate.health.HealthIndicator
-