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 Summary
Modifier and TypeMethodDescriptionvoidAcknowledge receipt of this message synchronously.Acknowledge receipt of this message asynchronously.voidAcknowledge receipt of all of the messages in the stream up to and including this message synchronously.Acknowledge receipt of all of the messages in the stream up to and including this message asynchronously.voidAcknowledge the failure to process this message.
-
Method Details
-
acknowledge
void acknowledge() throws org.apache.pulsar.client.api.PulsarClientExceptionAcknowledge receipt of this message synchronously.- Throws:
org.apache.pulsar.client.api.PulsarClientException- See Also:
-
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:
-
acknowledgeAsync
CompletableFuture<Void> acknowledgeAsync()Acknowledge receipt of this message asynchronously.- See Also:
-
acknowledgeCumulativeAsync
CompletableFuture<Void> acknowledgeCumulativeAsync()Acknowledge receipt of all of the messages in the stream up to and including this message asynchronously.- See Also:
-
negativeAcknowledge
void negativeAcknowledge()Acknowledge the failure to process this message.- See Also:
-