in pulsar/__init__.py [0:0]
def negative_acknowledge(self, message):
"""
Acknowledge the failure to process a single message.
When a message is "negatively acked" it will be marked for redelivery after
some fixed delay. The delay is configurable when constructing the consumer
with {@link ConsumerConfiguration#setNegativeAckRedeliveryDelayMs}.
This call is not blocking.
Parameters
----------
message:
The received message or message id.
"""
if isinstance(message, Message):
self._consumer.negative_acknowledge(message._message)
else:
self._consumer.negative_acknowledge(message)