Interface PulsarMessageReceipt

All Known Implementing Classes:
DefaultPulsarMessageReceipt

public interface PulsarMessageReceipt
Acknowledge the receipt of a message using the Pulsar consumer.

Available on the Exchange if PulsarConfiguration.isAllowManualAcknowledgement() is true. An alternative to the default may be provided by implementing PulsarMessageReceiptFactory.

  • Method Details

    • acknowledge

      void acknowledge() throws org.apache.pulsar.client.api.PulsarClientException
      Acknowledge receipt of this message synchronously.
      Throws:
      org.apache.pulsar.client.api.PulsarClientException
      See Also:
      • MessageAcknowledger.acknowledge(MessageId)
    • acknowledgeCumulative

      void acknowledgeCumulative() throws org.apache.pulsar.client.api.PulsarClientException
      Acknowledge receipt of all of the messages in the stream up to and including this message synchronously.
      Throws:
      org.apache.pulsar.client.api.PulsarClientException
      See Also:
      • MessageAcknowledger.acknowledgeCumulative(MessageId)
    • acknowledgeAsync

      CompletableFuture<Void> acknowledgeAsync()
      Acknowledge receipt of this message asynchronously.
      See Also:
      • MessageAcknowledger.acknowledgeAsync(MessageId)
    • acknowledgeCumulativeAsync

      CompletableFuture<Void> acknowledgeCumulativeAsync()
      Acknowledge receipt of all of the messages in the stream up to and including this message asynchronously.
      See Also:
      • MessageAcknowledger.acknowledgeCumulativeAsync(MessageId)
    • negativeAcknowledge

      void negativeAcknowledge()
      Acknowledge the failure to process this message.
      See Also:
      • Note: Available in Puslar 2.4.0. Implementations with earlier versions should return an java.lang.UnsupportedOperationException.