类 SinglePartitionMessageRouterImpl

  • 所有已实现的接口:
    java.io.Serializable, org.apache.pulsar.client.api.MessageRouter

    public class SinglePartitionMessageRouterImpl
    extends MessageRouterBase
    另请参阅:
    序列化表格
    • 构造器概要

      构造器 
      构造器 说明
      SinglePartitionMessageRouterImpl​(int partitionIndex, org.apache.pulsar.client.api.HashingScheme hashingScheme)  
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      int choosePartition​(org.apache.pulsar.client.api.Message<?> msg, org.apache.pulsar.client.api.TopicMetadata metadata)  
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • 从接口继承的方法 org.apache.pulsar.client.api.MessageRouter

        choosePartition
    • 构造器详细资料

      • SinglePartitionMessageRouterImpl

        public SinglePartitionMessageRouterImpl​(int partitionIndex,
                                                org.apache.pulsar.client.api.HashingScheme hashingScheme)
    • 方法详细资料

      • choosePartition

        public int choosePartition​(org.apache.pulsar.client.api.Message<?> msg,
                                   org.apache.pulsar.client.api.TopicMetadata metadata)