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

public class SinglePartitionMessageRouterImpl extends MessageRouterBase
See Also:
  • Field Summary

    Fields inherited from class org.apache.pulsar.client.impl.MessageRouterBase

    hash
  • Constructor Summary

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

    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 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)