Interface PulsarMessageReceipt

    • Method Detail

      • 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:
        Consumer.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:
        Consumer.acknowledgeCumulative(MessageId)
      • acknowledgeAsync

        CompletableFuture<Void> acknowledgeAsync()
        Acknowledge receipt of this message asynchronously.
        See Also:
        Consumer.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:
        Consumer.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 .