class documentation
class ConsumerDeadLetterPolicy: (source)
Constructor: ConsumerDeadLetterPolicy(max_redeliver_count, dead_letter_topic, initial_subscription_name)
Configuration for the "dead letter queue" feature in consumer.
Method | __init__ |
Wrapper DeadLetterPolicy. |
Method | policy |
Returns the actual one DeadLetterPolicy. |
Property | dead |
Return the dead letter topic for dead letter policy. |
Property | initial |
Return the initial subscription name for dead letter policy. |
Property | max |
Return the max redeliver count for dead letter policy. |
Instance Variable | _policy |
Undocumented |
def __init__(self, max_redeliver_count:
int
, dead_letter_topic: str
= None, initial_subscription_name: str
= None):
(source)
¶
Wrapper DeadLetterPolicy.
Parameters | |
max |
|
deadName of the dead topic where the failing messages are sent. | The default value is: sourceTopicName + "-" + subscriptionName + "-DLQ" |
initialName of the initial subscription name of the dead letter topic. | If this field is not set, the initial subscription for the dead letter topic is not created.
If this field is set but the broker's allowAutoSubscriptionCreation is disabled, the DLQ producer
fails to be created. |