Package org.apache.pulsar.client.impl
Class SinglePartitionMessageRouterImpl
java.lang.Object
org.apache.pulsar.client.impl.MessageRouterBase
org.apache.pulsar.client.impl.SinglePartitionMessageRouterImpl
- All Implemented Interfaces:
Serializable
,org.apache.pulsar.client.api.MessageRouter
- See Also:
-
Field Summary
Fields inherited from class org.apache.pulsar.client.impl.MessageRouterBase
hash
-
Constructor Summary
ConstructorsConstructorDescriptionSinglePartitionMessageRouterImpl
(int partitionIndex, org.apache.pulsar.client.api.HashingScheme hashingScheme) -
Method Summary
Modifier and TypeMethodDescriptionint
choosePartition
(org.apache.pulsar.client.api.Message<?> msg, org.apache.pulsar.client.api.TopicMetadata metadata) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.pulsar.client.api.MessageRouter
choosePartition
-
Constructor Details
-
SinglePartitionMessageRouterImpl
public SinglePartitionMessageRouterImpl(int partitionIndex, org.apache.pulsar.client.api.HashingScheme hashingScheme)
-
-
Method Details
-
choosePartition
public int choosePartition(org.apache.pulsar.client.api.Message<?> msg, org.apache.pulsar.client.api.TopicMetadata metadata)
-