Skip to content

Commit cfd78d8

Browse files
committed
Add docs.
1 parent a63eb01 commit cfd78d8

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

pulsar/__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -780,6 +780,14 @@ def my_listener(consumer, message):
780780
Set the batch collection policy for batch receiving.
781781
key_shared_policy: class ConsumerKeySharedPolicy
782782
Set the key shared policy for use when the ConsumerType is KeyShared.
783+
regex_subscription_mode: RegexSubscriptionMode, optional
784+
Set the regex subscription mode for use when the topic is a regex pattern.
785+
786+
Supported modes:
787+
788+
* PersistentOnly: By default only subscribe to persistent topics.
789+
* NonPersistentOnly: Only subscribe to non-persistent topics.
790+
* AllTopics: Subscribe to both persistent and non-persistent topics.
783791
"""
784792
_check_type(str, subscription_name, 'subscription_name')
785793
_check_type(ConsumerType, consumer_type, 'consumer_type')

0 commit comments

Comments
 (0)