Class EventHubsHealthIndicator
java.lang.Object
org.springframework.boot.actuate.health.AbstractHealthIndicator
com.azure.spring.cloud.actuator.eventhubs.EventHubsHealthIndicator
- All Implemented Interfaces:
org.springframework.boot.actuate.health.HealthContributor,org.springframework.boot.actuate.health.HealthIndicator
public class EventHubsHealthIndicator
extends org.springframework.boot.actuate.health.AbstractHealthIndicator
Health indicator for Azure Event Hubs.
-
Constructor Summary
ConstructorsConstructorDescriptionEventHubsHealthIndicator(com.azure.messaging.eventhubs.EventHubProducerAsyncClient producerAsyncClient, com.azure.messaging.eventhubs.EventHubConsumerAsyncClient consumerAsyncClient) Creates a new instance ofEventHubsHealthIndicator. -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoHealthCheck(org.springframework.boot.actuate.health.Health.Builder builder) voidsetTimeout(Duration timeout) Set health check request timeout.Methods inherited from class org.springframework.boot.actuate.health.AbstractHealthIndicator
healthMethods 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
-
EventHubsHealthIndicator
public EventHubsHealthIndicator(com.azure.messaging.eventhubs.EventHubProducerAsyncClient producerAsyncClient, com.azure.messaging.eventhubs.EventHubConsumerAsyncClient consumerAsyncClient) Creates a new instance ofEventHubsHealthIndicator.- Parameters:
producerAsyncClient- the producer clientconsumerAsyncClient- the consumer client
-
-
Method Details
-
doHealthCheck
protected void doHealthCheck(org.springframework.boot.actuate.health.Health.Builder builder) - Specified by:
doHealthCheckin classorg.springframework.boot.actuate.health.AbstractHealthIndicator
-
setTimeout
Set health check request timeout.- Parameters:
timeout- the duration value.
-