类 PartialRoundRobinMessageRouterImpl
java.lang.Object
org.apache.pulsar.client.impl.customroute.PartialRoundRobinMessageRouterImpl
- 所有已实现的接口:
Serializable,MessageRouter
- 另请参阅:
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明intchoosePartition(Message<?> msg, TopicMetadata metadata) Choose a partition based on the topic metadata.从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 org.apache.pulsar.client.api.MessageRouter
choosePartition
-
构造器详细资料
-
PartialRoundRobinMessageRouterImpl
public PartialRoundRobinMessageRouterImpl(int numPartitionsLimit)
-
-
方法详细资料
-
choosePartition
Choose a partition based on the topic metadata. Key hash routing isn't supported.- 指定者:
choosePartition在接口中MessageRouter- 参数:
msg- messagemetadata- topic metadata- 返回:
- the partition to route the message.
-