Class DrainingHashesTracker.DrainingHashEntry

java.lang.Object
org.apache.pulsar.broker.service.DrainingHashesTracker.DrainingHashEntry
Enclosing class:
DrainingHashesTracker

public static class DrainingHashesTracker.DrainingHashEntry extends Object
Represents an entry in the draining hashes tracker.
  • Method Details

    • getConsumer

      public Consumer getConsumer()
      Gets the consumer that contained the hash in pending acks at the time of creating this entry. Since a particular hash can be assigned to only one consumer at a time, this consumer cannot change. No new pending acks can be added in the PendingAcksMap when there's a draining hash entry for a hash in DrainingHashesTracker.
      Returns:
      the consumer instance that contained the hash in pending acks at the time of creating this entry