apache / pulsar-client-python

Apache Pulsar Python client library
https://pulsar.apache.org/
Apache License 2.0
51 stars 39 forks source link

[Feature request] Expose expireTimeOfIncompleteChunkedMessageMs to the Consumer #141

Open hyperevo opened 1 year ago

hyperevo commented 1 year ago

Motivation

Two of the three message chunking related settings in the ConsumerConfiguration have already been exposed to the consumer. Namely, maxPendingChunkedMessage and autoAckOldestChunkedMessageOnQueueFull. However, the third one, expireTimeOfIncompleteChunkedMessageMs, has not yet been exposed. If this third one can be exposed then the python client consumer would have full control over how they want to handle chunked messages.

TLDR: Expose expireTimeOfIncompleteChunkedMessageMs of the ConsumerConfiguration to the consumer, which can be found here: https://github.com/apache/pulsar-client-cpp/blob/1e7d259bb94379ef6e4618fdac283912d0be6861/lib/ConsumerConfigurationImpl.h#L61.