Class ContextHealthCheck

  • All Implemented Interfaces:
    org.apache.camel.CamelContextAware, org.apache.camel.health.HealthCheck, org.apache.camel.Ordered, org.apache.camel.spi.HasGroup, org.apache.camel.spi.HasId

    @JdkService("context-health-check")
    public final class ContextHealthCheck
    extends AbstractHealthCheck
    implements org.apache.camel.CamelContextAware
    HealthCheck that checks the status of the CamelContext whether its started or not.
    • Constructor Detail

      • ContextHealthCheck

        public ContextHealthCheck()
    • Method Detail

      • getCamelContext

        public org.apache.camel.CamelContext getCamelContext()
        Specified by:
        getCamelContext in interface org.apache.camel.CamelContextAware
      • setCamelContext

        public void setCamelContext​(org.apache.camel.CamelContext camelContext)
        Specified by:
        setCamelContext in interface org.apache.camel.CamelContextAware
      • isLiveness

        public boolean isLiveness()
        Specified by:
        isLiveness in interface org.apache.camel.health.HealthCheck