in pulsar/__init__.py [0:0]
def acknowledge_cumulative(self, message):
"""
Acknowledge the reception of all the messages in the stream up to (and
including) the provided message.
This method will block until an acknowledgement is sent to the broker.
After that, the messages will not be re-delivered to this consumer.
Parameters
----------
message:
The received message or message id.
Raises
------
CumulativeAcknowledgementNotAllowedError
if the consumer type is ConsumerType.KeyShared or ConsumerType.Shared
"""
if isinstance(message, Message):
self._consumer.acknowledge_cumulative(message._message)
else:
self._consumer.acknowledge_cumulative(message)