Skip to content

Commit daa44d4

Browse files
committed
Add docs.
1 parent 7af8f87 commit daa44d4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pulsar/__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -798,6 +798,14 @@ def my_listener(consumer, message):
798798
batch_index_ack_enabled: Enable the batch index acknowledgement.
799799
It should be noted that this option can only work when the broker side also enables the batch index
800800
acknowledgement. See the `acknowledgmentAtBatchIndexLevelEnabled` config in `broker.conf`.
801+
regex_subscription_mode: RegexSubscriptionMode, optional
802+
Set the regex subscription mode for use when the topic is a regex pattern.
803+
804+
Supported modes:
805+
806+
* PersistentOnly: By default only subscribe to persistent topics.
807+
* NonPersistentOnly: Only subscribe to non-persistent topics.
808+
* AllTopics: Subscribe to both persistent and non-persistent topics.
801809
"""
802810
_check_type(str, subscription_name, 'subscription_name')
803811
_check_type(ConsumerType, consumer_type, 'consumer_type')

0 commit comments

Comments
 (0)