Class LoomHealthIndicator
java.lang.Object
com.loomcache.springboot.autoconfigure.LoomHealthIndicator
- All Implemented Interfaces:
org.springframework.boot.health.contributor.HealthContributor, org.springframework.boot.health.contributor.HealthIndicator
public class LoomHealthIndicator
extends Object
implements org.springframework.boot.health.contributor.HealthIndicator
Spring Boot Actuator
HealthIndicator for LoomCache.
When an embedded CacheNode bean is present, readiness is driven by the
server path: the TCP listener must be running and Raft must have elected a leader.
The client connectivity check is then a secondary signal — an embedded node that is
Raft-healthy but whose client has no outbound connections is still UP.
When no embedded node is present (pure client deployment), health falls back to client connectivity alone.
Registered under bean name loomcache and exposed via
/actuator/health/loomcache when Actuator is on the classpath.
-
Constructor Summary
ConstructorsConstructorDescriptionLoomHealthIndicator(@Nullable LoomCache loomcache, @Nullable CacheNode cacheNode) Construct a health indicator that also considers the embedded server path.LoomHealthIndicator(LoomCache loomcache) Construct a health indicator for a pure client deployment. -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.boot.health.contributor.HealthIndicator
health
-
Constructor Details
-
LoomHealthIndicator
Construct a health indicator for a pure client deployment. -
LoomHealthIndicator
-
-
Method Details
-
health
public org.springframework.boot.health.contributor.Health health()- Specified by:
healthin interfaceorg.springframework.boot.health.contributor.HealthIndicator
-