类 RoundRobinPartitionMessageRouterImpl
java.lang.Object
org.apache.pulsar.client.impl.MessageRouterBase
org.apache.pulsar.client.impl.RoundRobinPartitionMessageRouterImpl
- 所有已实现的接口:
Serializable,MessageRouter
The routing strategy here:
- If a key is present, choose a partition based on a hash of the key.
- If no key is present, choose a partition in a "round-robin" fashion. Batching-Awareness is built-in to improve batching locality.
- 另请参阅:
-
字段概要
从类继承的字段 org.apache.pulsar.client.impl.MessageRouterBase
hash -
构造器概要
构造器构造器说明RoundRobinPartitionMessageRouterImpl(HashingScheme hashingScheme, int startPtnIdx, boolean isBatchingEnabled, long partitionSwitchMs) RoundRobinPartitionMessageRouterImpl(HashingScheme hashingScheme, int startPtnIdx, boolean isBatchingEnabled, long partitionSwitchMs, Clock clock) -
方法概要
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 org.apache.pulsar.client.api.MessageRouter
choosePartition
-
构造器详细资料
-
RoundRobinPartitionMessageRouterImpl
public RoundRobinPartitionMessageRouterImpl(HashingScheme hashingScheme, int startPtnIdx, boolean isBatchingEnabled, long partitionSwitchMs) -
RoundRobinPartitionMessageRouterImpl
public RoundRobinPartitionMessageRouterImpl(HashingScheme hashingScheme, int startPtnIdx, boolean isBatchingEnabled, long partitionSwitchMs, Clock clock)
-
-
方法详细资料
-
choosePartition
-