Class HealthMixin

java.lang.Object
org.apache.juneau.rest.server.servlet.RestMixin
org.apache.juneau.rest.server.health.HealthMixin

public class HealthMixin extends RestMixin
Mixin flavor of the built-in health/readiness/liveness probe capability.

Composes the /healthz, /readyz, and /livez probe endpoints into a host resource via @Rest(mixins=HealthMixin.class). The ops self-pin their absolute paths so they merge into the host's namespace. Delegates to a shared HealthAggregator worker bean — the same logic the HealthServlet servlet flavor uses.

Indicators are resolved from the host's bean store, so a host registers its own HealthIndicator beans (e.g. via Spring @Bean or a Juneau BeanStore).

See Also:
Since:
10.0.0