public class RoundRobinPartitionMessageRouterImpl extends MessageRouterBase
hash| Constructor and Description |
|---|
RoundRobinPartitionMessageRouterImpl(HashingScheme hashingScheme,
int startPtnIdx,
boolean isBatchingEnabled,
long maxBatchingDelayMs) |
RoundRobinPartitionMessageRouterImpl(HashingScheme hashingScheme,
int startPtnIdx,
boolean isBatchingEnabled,
long maxBatchingDelayMs,
Clock clock) |
| Modifier and Type | Method and Description |
|---|---|
int |
choosePartition(Message<?> msg,
TopicMetadata topicMetadata)
Choose a partition based on msg and the topic metadata.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchoosePartitionpublic RoundRobinPartitionMessageRouterImpl(HashingScheme hashingScheme, int startPtnIdx, boolean isBatchingEnabled, long maxBatchingDelayMs)
public RoundRobinPartitionMessageRouterImpl(HashingScheme hashingScheme, int startPtnIdx, boolean isBatchingEnabled, long maxBatchingDelayMs, Clock clock)
public int choosePartition(Message<?> msg, TopicMetadata topicMetadata)
MessageRoutermsg - message to routetopicMetadata - topic metadataCopyright © 2017–2018 Apache Software Foundation. All rights reserved.