Package org.opennms.core.camel
Class RandomPartitionKeyGenerator
- java.lang.Object
-
- org.opennms.core.camel.RandomPartitionKeyGenerator
-
public class RandomPartitionKeyGenerator extends java.lang.Object
This class can be used to generate random partition keys when sending messages to Apache Kafka.
-
-
Constructor Summary
Constructors Constructor Description RandomPartitionKeyGenerator()
RandomPartitionKeyGenerator(int maximum)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getPartitionKey()
-