Class KafkaProducerHealthCheck

  • 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

    public class KafkaProducerHealthCheck
    extends org.apache.camel.impl.health.AbstractHealthCheck
    Kafka producer readiness health-check
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.apache.camel.health.HealthCheck

        org.apache.camel.health.HealthCheck.Kind, org.apache.camel.health.HealthCheck.Result, org.apache.camel.health.HealthCheck.State
    • Field Summary

      • Fields inherited from interface org.apache.camel.health.HealthCheck

        CHECK_ENABLED, CHECK_GROUP, CHECK_ID, CHECK_KIND, ENDPOINT_URI, FAILURE_COUNT, FAILURE_ENDPOINT_URI, FAILURE_ERROR_COUNT, HTTP_RESPONSE_CODE, INVOCATION_ATTEMPT_TIME, INVOCATION_COUNT, INVOCATION_TIME, SUCCESS_COUNT
      • Fields inherited from interface org.apache.camel.Ordered

        HIGHEST, LOWEST
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void doCall​(org.apache.camel.health.HealthCheckResultBuilder builder, Map<String,​Object> options)  
      boolean isLiveness()  
      • Methods inherited from class org.apache.camel.impl.health.AbstractHealthCheck

        addMetaData, call, call, doCall, equals, getCamelContext, getGroup, getId, getMetaData, hashCode, isEnabled, setCamelContext, setEnabled
      • Methods inherited from interface org.apache.camel.health.HealthCheck

        callLiveness, callReadiness, getOrder, isReadiness
    • Constructor Detail

      • KafkaProducerHealthCheck

        public KafkaProducerHealthCheck​(KafkaProducer kafkaProducer,
                                        String clientId)
    • Method Detail

      • isLiveness

        public boolean isLiveness()
      • doCall

        protected void doCall​(org.apache.camel.health.HealthCheckResultBuilder builder,
                              Map<String,​Object> options)
        Specified by:
        doCall in class org.apache.camel.impl.health.AbstractHealthCheck