Class KafkaProducerTest.ProducerInterceptorForClientId

java.lang.Object
org.apache.kafka.clients.producer.KafkaProducerTest.ProducerInterceptorForClientId
All Implemented Interfaces:
AutoCloseable, org.apache.kafka.clients.producer.ProducerInterceptor<byte[],byte[]>, org.apache.kafka.common.Configurable
Enclosing class:
KafkaProducerTest

public static class KafkaProducerTest.ProducerInterceptorForClientId extends Object implements org.apache.kafka.clients.producer.ProducerInterceptor<byte[],byte[]>
  • Constructor Details

    • ProducerInterceptorForClientId

      public ProducerInterceptorForClientId()
  • Method Details

    • onSend

      public org.apache.kafka.clients.producer.ProducerRecord<byte[],byte[]> onSend(org.apache.kafka.clients.producer.ProducerRecord<byte[],byte[]> record)
      Specified by:
      onSend in interface org.apache.kafka.clients.producer.ProducerInterceptor<byte[],byte[]>
    • onAcknowledgement

      public void onAcknowledgement(org.apache.kafka.clients.producer.RecordMetadata metadata, Exception exception)
      Specified by:
      onAcknowledgement in interface org.apache.kafka.clients.producer.ProducerInterceptor<byte[],byte[]>
    • close

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

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