Class DeadLetterPolicy
java.lang.Object
org.apache.pulsar.client.api.v5.config.DeadLetterPolicy
-
Nested Class Summary
Nested Classes -
Method Summary
-
Method Details
-
maxRedeliverCount
public int maxRedeliverCount()- Returns:
- the maximum number of redelivery attempts before sending to the dead letter topic
-
retryLetterTopic
- Returns:
- the custom retry letter topic, or
nullfor the auto-generated default
-
deadLetterTopic
- Returns:
- the custom dead letter topic, or
nullfor the auto-generated default
-
initialSubscriptionName
- Returns:
- the subscription name to create on the dead letter topic, or
nullif none
-
builder
- Returns:
- a new builder for constructing a
DeadLetterPolicy
-