Class HealthCheckComponent

java.lang.Object
org.apache.camel.support.service.BaseService
org.apache.camel.support.service.ServiceSupport
org.apache.camel.support.DefaultComponent
org.apache.camel.support.HealthCheckComponent
All Implemented Interfaces:
AutoCloseable, org.apache.camel.CamelContextAware, org.apache.camel.Component, org.apache.camel.Service, org.apache.camel.ShutdownableService, org.apache.camel.spi.HasCamelContext, org.apache.camel.StatefulService, org.apache.camel.SuspendableService

public abstract class HealthCheckComponent extends DefaultComponent
Base class for components to support configuring HealthCheck.
  • Constructor Details

    • HealthCheckComponent

      public HealthCheckComponent()
    • HealthCheckComponent

      public HealthCheckComponent(org.apache.camel.CamelContext context)
  • Method Details

    • isHealthCheckConsumerEnabled

      public boolean isHealthCheckConsumerEnabled()
    • setHealthCheckConsumerEnabled

      public void setHealthCheckConsumerEnabled(boolean healthCheckConsumerEnabled)
      Used for enabling or disabling all consumer based health checks from this component
    • isHealthCheckProducerEnabled

      public boolean isHealthCheckProducerEnabled()
    • setHealthCheckProducerEnabled

      public void setHealthCheckProducerEnabled(boolean healthCheckProducerEnabled)
      Used for enabling or disabling all producer based health checks from this component. Notice: Camel has by default disabled all producer based health-checks. You can turn on producer checks globally by setting camel.health.producersEnabled=true.