Class ConsulHealthChecker
java.lang.Object
ai.pipestream.registration.consul.ConsulHealthChecker
Handles health check operations for services registered with Consul
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.smallrye.mutiny.Uni<Boolean> waitForHealthy(String serviceName, String serviceId) Wait for a service to become healthy in Consul's view
-
Constructor Details
-
ConsulHealthChecker
public ConsulHealthChecker()
-
-
Method Details
-
waitForHealthy
Wait for a service to become healthy in Consul's view- Parameters:
serviceName- The Consul service name (used for health API query)serviceId- The full service ID (serviceName-host-port)- Returns:
- Uni
true if service becomes healthy, false if timeout
-