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 Details

    • LoomHealthIndicator

      public LoomHealthIndicator(LoomCache loomcache)
      Construct a health indicator for a pure client deployment.
    • LoomHealthIndicator

      public LoomHealthIndicator(@Nullable LoomCache loomcache, @Nullable CacheNode cacheNode)
      Construct a health indicator that also considers the embedded server path.
      Parameters:
      loomcache - the LoomCache client instance
      cacheNode - the embedded node, or null for client-only deployments
  • Method Details

    • health

      public org.springframework.boot.health.contributor.Health health()
      Specified by:
      health in interface org.springframework.boot.health.contributor.HealthIndicator