Class KafkaConsumerTest.ConsumerInterceptorForClientId

java.lang.Object
org.apache.kafka.clients.consumer.KafkaConsumerTest.ConsumerInterceptorForClientId
All Implemented Interfaces:
AutoCloseable, org.apache.kafka.clients.consumer.ConsumerInterceptor<byte[],byte[]>, org.apache.kafka.common.Configurable
Enclosing class:
KafkaConsumerTest

public static class KafkaConsumerTest.ConsumerInterceptorForClientId extends Object implements org.apache.kafka.clients.consumer.ConsumerInterceptor<byte[],byte[]>
  • Constructor Details

    • ConsumerInterceptorForClientId

      public ConsumerInterceptorForClientId()
  • Method Details

    • onConsume

      public org.apache.kafka.clients.consumer.ConsumerRecords<byte[],byte[]> onConsume(org.apache.kafka.clients.consumer.ConsumerRecords<byte[],byte[]> records)
      Specified by:
      onConsume in interface org.apache.kafka.clients.consumer.ConsumerInterceptor<byte[],byte[]>
    • onCommit

      public void onCommit(Map<org.apache.kafka.common.TopicPartition, org.apache.kafka.clients.consumer.OffsetAndMetadata> offsets)
      Specified by:
      onCommit in interface org.apache.kafka.clients.consumer.ConsumerInterceptor<byte[],byte[]>
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface org.apache.kafka.clients.consumer.ConsumerInterceptor<byte[],byte[]>
    • configure

      public void configure(Map<String,?> configs)
      Specified by:
      configure in interface org.apache.kafka.common.Configurable