Interface ConsumerDelegate<K,V>

All Superinterfaces:
AutoCloseable, Closeable, Consumer<K,V>
All Known Implementing Classes:
AsyncKafkaConsumer, LegacyKafkaConsumer

public interface ConsumerDelegate<K,V> extends Consumer<K,V>
This extension interface provides a handful of methods to expose internals of the Consumer for various tests.

Note: this is for internal use only and is not intended for use by end users. Internal users should not attempt to determine the underlying implementation to avoid coding to an unstable interface. Rather, it is the Consumer API contract that should serve as the caller's interface.

  • Method Details

    • clientId

      String clientId()
    • metricsRegistry

      org.apache.kafka.common.metrics.Metrics metricsRegistry()
    • kafkaConsumerMetrics

      KafkaConsumerMetrics kafkaConsumerMetrics()
    • updateAssignmentMetadataIfNeeded

      boolean updateAssignmentMetadataIfNeeded(org.apache.kafka.common.utils.Timer timer)