Interface PendingAcksMap.PendingAcksRemoveHandler

Enclosing class:
PendingAcksMap

public static interface PendingAcksMap.PendingAcksRemoveHandler
Callback interface for handling the removal of pending acknowledgments.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    End a batch of pending acknowledgment removals.
    void
    handleRemoving(Consumer consumer, long ledgerId, long entryId, int stickyKeyHash, boolean closing)
    Handle the removal of a pending acknowledgment.
    void
    Start 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 consumer
      ledgerId - the ledger ID
      entryId - the entry ID
      stickyKeyHash - the sticky key hash
      closing - 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.