Class KafkaProducerTest.BuggyPartitioner

java.lang.Object
org.apache.kafka.clients.producer.KafkaProducerTest.BuggyPartitioner
All Implemented Interfaces:
Closeable, AutoCloseable, org.apache.kafka.clients.producer.Partitioner, org.apache.kafka.common.Configurable
Enclosing class:
KafkaProducerTest

public static class KafkaProducerTest.BuggyPartitioner extends Object implements org.apache.kafka.clients.producer.Partitioner
  • Constructor Details

    • BuggyPartitioner

      public BuggyPartitioner()
  • Method Details

    • partition

      public int partition(String topic, Object key, byte[] keyBytes, Object value, byte[] valueBytes, org.apache.kafka.common.Cluster cluster)
      Specified by:
      partition in interface org.apache.kafka.clients.producer.Partitioner
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Specified by:
      close in interface org.apache.kafka.clients.producer.Partitioner
    • configure

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