Class ConsistentHashingStickyKeyConsumerSelector

java.lang.Object
org.apache.pulsar.broker.service.ConsistentHashingStickyKeyConsumerSelector
All Implemented Interfaces:
StickyKeyConsumerSelector

public class ConsistentHashingStickyKeyConsumerSelector extends Object implements StickyKeyConsumerSelector
This is a consumer selector using consistent hashing to evenly split the number of keys assigned to each consumer.
  • Constructor Details

    • ConsistentHashingStickyKeyConsumerSelector

      public ConsistentHashingStickyKeyConsumerSelector(int numberOfPoints)
    • ConsistentHashingStickyKeyConsumerSelector

      public ConsistentHashingStickyKeyConsumerSelector(int numberOfPoints, boolean addOrRemoveReturnsImpactedConsumersResult)
    • ConsistentHashingStickyKeyConsumerSelector

      public ConsistentHashingStickyKeyConsumerSelector(int numberOfPoints, boolean addOrRemoveReturnsImpactedConsumersResult, int rangeMaxValue)
  • Method Details