Class DefaultPulsarMessageReceipt
java.lang.Object
org.apache.camel.component.pulsar.DefaultPulsarMessageReceipt
- All Implemented Interfaces:
PulsarMessageReceipt
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultPulsarMessageReceipt(org.apache.pulsar.client.api.Consumer consumer, org.apache.pulsar.client.api.MessageId messageId) -
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.org.apache.pulsar.client.api.Consumerorg.apache.pulsar.client.api.MessageIdvoidAcknowledge the failure to process this message.
-
Constructor Details
-
DefaultPulsarMessageReceipt
public DefaultPulsarMessageReceipt(org.apache.pulsar.client.api.Consumer consumer, org.apache.pulsar.client.api.MessageId messageId)
-
-
Method Details
-
acknowledge
public void acknowledge() throws org.apache.pulsar.client.api.PulsarClientExceptionDescription copied from interface:PulsarMessageReceiptAcknowledge receipt of this message synchronously.- Specified by:
acknowledgein interfacePulsarMessageReceipt- Throws:
org.apache.pulsar.client.api.PulsarClientException- See Also:
-
Consumer.acknowledge(MessageId)
-
acknowledgeCumulative
public void acknowledgeCumulative() throws org.apache.pulsar.client.api.PulsarClientExceptionDescription copied from interface:PulsarMessageReceiptAcknowledge receipt of all of the messages in the stream up to and including this message synchronously.- Specified by:
acknowledgeCumulativein interfacePulsarMessageReceipt- Throws:
org.apache.pulsar.client.api.PulsarClientException- See Also:
-
Consumer.acknowledgeCumulative(MessageId)
-
acknowledgeAsync
Description copied from interface:PulsarMessageReceiptAcknowledge receipt of this message asynchronously.- Specified by:
acknowledgeAsyncin interfacePulsarMessageReceipt- See Also:
-
Consumer.acknowledgeAsync(MessageId)
-
acknowledgeCumulativeAsync
Description copied from interface:PulsarMessageReceiptAcknowledge receipt of all of the messages in the stream up to and including this message asynchronously.- Specified by:
acknowledgeCumulativeAsyncin interfacePulsarMessageReceipt- See Also:
-
Consumer.acknowledgeCumulativeAsync(MessageId)
-
negativeAcknowledge
public void negativeAcknowledge()Description copied from interface:PulsarMessageReceiptAcknowledge the failure to process this message.- Specified by:
negativeAcknowledgein interfacePulsarMessageReceipt- See Also:
-
Note: Available in Puslar 2.4.0. Implementations with earlier versions should return an java.lang.UnsupportedOperationException.
-
getConsumer
public org.apache.pulsar.client.api.Consumer getConsumer() -
getMessageId
public org.apache.pulsar.client.api.MessageId getMessageId()
-