Interface Acknowledger


public interface Acknowledger
Settles one delivery.

Exactly one method must be called for each delivery. A transport is entitled to treat a delivery that is never settled as a leak, because to the broker it is one: the message stays unacknowledged and occupies a prefetch slot until the connection drops.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Acknowledges the message so the broker discards it.
    void
    reject(boolean requeue)
    Rejects the message.
  • Method Details

    • accept

      void accept()
      Acknowledges the message so the broker discards it.
    • reject

      void reject(boolean requeue)
      Rejects the message.
      Parameters:
      requeue - true to return it for another consumer, false to let the broker dead-letter or drop it