Class SinglePartitionMessageRouterImpl

  • All Implemented Interfaces:
    java.io.Serializable, org.apache.pulsar.client.api.MessageRouter

    public class SinglePartitionMessageRouterImpl
    extends MessageRouterBase
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      SinglePartitionMessageRouterImpl​(int partitionIndex, org.apache.pulsar.client.api.HashingScheme hashingScheme)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int 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 Detail

      • SinglePartitionMessageRouterImpl

        public SinglePartitionMessageRouterImpl​(int partitionIndex,
                                                org.apache.pulsar.client.api.HashingScheme hashingScheme)
    • Method Detail

      • choosePartition

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