public class CustomPartitioner extends Object implements kafka.producer.Partitioner
| Constructor and Description |
|---|
CustomPartitioner(kafka.utils.VerifiableProperties props)
Constructs a CustomizePartitioner.
|
public CustomPartitioner(kafka.utils.VerifiableProperties props)
props - unused but required by Kafka.public int partition(Object routingKey, int numPartitions)
partition in interface kafka.producer.PartitionerroutingKey - used to route message to partitionsnumPartitions - number of partitionsCopyright © 2013–2017 Europeana Cloud Development Team. All rights reserved.