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