Package org.apache.pulsar.broker.service
Class DrainingHashesTracker.DrainingHashEntry
java.lang.Object
org.apache.pulsar.broker.service.DrainingHashesTracker.DrainingHashEntry
- Enclosing class:
- DrainingHashesTracker
Represents an entry in the draining hashes tracker.
-
Method Summary
Modifier and TypeMethodDescriptionGets the consumer that contained the hash in pending acks at the time of creating this entry.
-
Method Details
-
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 thePendingAcksMapwhen there's a draining hash entry for a hash inDrainingHashesTracker.- Returns:
- the consumer instance that contained the hash in pending acks at the time of creating this entry
-