Interface PulsarMessageReceipt
-
- All Known Implementing Classes:
DefaultPulsarMessageReceipt
public interface PulsarMessageReceiptAcknowledge the receipt of a message using the Pulsar consumer.Available on the
ExchangeifPulsarConfiguration.isAllowManualAcknowledgement()is true. An alternative to the default may be provided by implementingPulsarMessageReceiptFactory.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidacknowledge()Acknowledge receipt of this message synchronously.CompletableFuture<Void>acknowledgeAsync()Acknowledge receipt of this message asynchronously.voidacknowledgeCumulative()Acknowledge receipt of all of the messages in the stream up to and including this message synchronously.CompletableFuture<Void>acknowledgeCumulativeAsync()Acknowledge receipt of all of the messages in the stream up to and including this message asynchronously.voidnegativeAcknowledge()Acknowledge the failure to process this message.
-
-
-
Method Detail
-
acknowledge
void acknowledge() throws org.apache.pulsar.client.api.PulsarClientExceptionAcknowledge 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.PulsarClientExceptionAcknowledge 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 .
-
-