Package org.apache.pulsar.broker.service
Interface PendingAcksMap.PendingAcksRemoveHandler
- Enclosing class:
- PendingAcksMap
public static interface PendingAcksMap.PendingAcksRemoveHandler
Callback interface for handling the removal of pending acknowledgments.
-
Method Summary
Modifier and TypeMethodDescriptionvoidendBatch()End a batch of pending acknowledgment removals.voidhandleRemoving(Consumer consumer, long ledgerId, long entryId, int stickyKeyHash, boolean closing) Handle the removal of a pending acknowledgment.voidStart a batch of pending acknowledgment removals.
-
Method Details
-
handleRemoving
void handleRemoving(Consumer consumer, long ledgerId, long entryId, int stickyKeyHash, boolean closing) Handle the removal of a pending acknowledgment.- Parameters:
consumer- the consumerledgerId- the ledger IDentryId- the entry IDstickyKeyHash- the sticky key hashclosing- true if the pending ack is being removed because the map is being closed, false otherwise
-
startBatch
void startBatch()Start a batch of pending acknowledgment removals. -
endBatch
void endBatch()End a batch of pending acknowledgment removals.
-