Class KafkaProducerTest.ProducerInterceptorForHeaders

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

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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
    configure(Map<String,?> configs)
     
    void
    onAcknowledgement(org.apache.kafka.clients.producer.RecordMetadata metadata, Exception exception, org.apache.kafka.common.header.Headers headers)
     
    org.apache.kafka.clients.producer.ProducerRecord<byte[],byte[]>
    onSend(org.apache.kafka.clients.producer.ProducerRecord<byte[],byte[]> record)
     

    Methods inherited from class Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apache.kafka.clients.producer.ProducerInterceptor

    onAcknowledgement
  • Constructor Details

    • ProducerInterceptorForHeaders

      public ProducerInterceptorForHeaders()
  • 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, org.apache.kafka.common.header.Headers headers)
      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