- All Implemented Interfaces:
- Closeable, AutoCloseable, org.apache.kafka.clients.producer.Partitioner, org.apache.kafka.common.Configurable
public class KafkaOutputBoltPartitioner
extends Object
implements org.apache.kafka.clients.producer.Partitioner
The partitioner is in charge of telling the kafka producer to which partition
the next message should go to.
This class lets you implements some strategy, for example based on the message content.
As of now, it performs a simple round robin over the number of partitions available.
- Author:
- dimi