Class AbstractCamelMicroProfileHealthCheck
- java.lang.Object
-
- org.apache.camel.microprofile.health.AbstractCamelMicroProfileHealthCheck
-
- All Implemented Interfaces:
org.apache.camel.CamelContextAware
,org.eclipse.microprofile.health.HealthCheck
- Direct Known Subclasses:
CamelMicroProfileLivenessCheck
,CamelMicroProfileReadinessCheck
public abstract class AbstractCamelMicroProfileHealthCheck extends Object implements org.eclipse.microprofile.health.HealthCheck, org.apache.camel.CamelContextAware
Invokes Camel health checks and adds their results into the HealthCheckResponseBuilder
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.camel.CamelContext
camelContext
-
Constructor Summary
Constructors Constructor Description AbstractCamelMicroProfileHealthCheck()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract boolean
acceptHealthCheck(org.apache.camel.impl.health.AbstractHealthCheck check)
org.eclipse.microprofile.health.HealthCheckResponse
call()
org.apache.camel.CamelContext
getCamelContext()
boolean
isLiveness()
Whether this health check can be used for liveness checksboolean
isReadiness()
Whether this health check can be used for readiness checksvoid
setCamelContext(org.apache.camel.CamelContext camelContext)
-
-
-
Method Detail
-
acceptHealthCheck
protected abstract boolean acceptHealthCheck(org.apache.camel.impl.health.AbstractHealthCheck check)
-
call
public org.eclipse.microprofile.health.HealthCheckResponse call()
- Specified by:
call
in interfaceorg.eclipse.microprofile.health.HealthCheck
-
setCamelContext
public void setCamelContext(org.apache.camel.CamelContext camelContext)
- Specified by:
setCamelContext
in interfaceorg.apache.camel.CamelContextAware
-
getCamelContext
public org.apache.camel.CamelContext getCamelContext()
- Specified by:
getCamelContext
in interfaceorg.apache.camel.CamelContextAware
-
isReadiness
public boolean isReadiness()
Whether this health check can be used for readiness checks
-
isLiveness
public boolean isLiveness()
Whether this health check can be used for liveness checks
-
-