@Component public class ProducerWrapper extends Object
CustomPartitioner as routing partitions
algorithm is sending message to Kafka broker.| Constructor and Description |
|---|
ProducerWrapper(String brokerList,
String topic)
Constructs a ProducerWrapper.
|
public void send(int partitionRoutingKey,
byte[] payload)
partitionRoutingKey - key using to route to specified partition via
CustomPartitionerpayload - content of messageCopyright © 2013–2017 Europeana Cloud Development Team. All rights reserved.