Package org.apache.pulsar.client.api
Interface DeadLetterProducerBuilderContext
public interface DeadLetterProducerBuilderContext
Provides context information required for customizing a producer builder.
This interface supplies relevant details such as the name of the input topic and associated subscription name. This contextual information helps in correctly configuring the producer for the appropriate topic.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the default name of topic for the dead letter or retry letter producer.Returns the name of the consumer for which the dead letter or retry letter producer is being configured.Returns the name of the input topic for which the dead letter or retry letter producer is being configured.Returns the name of the subscription for which the dead letter or retry letter producer is being configured.
-
Method Details
-
getDefaultTopicName
String getDefaultTopicName()Returns the default name of topic for the dead letter or retry letter producer. This topic name is used unless the ProducerBuilderCustomizer overrides it.- Returns:
- a
Stringrepresenting the input topic name
-
getInputTopicName
String getInputTopicName()Returns the name of the input topic for which the dead letter or retry letter producer is being configured.- Returns:
- a
Stringrepresenting the input topic name
-
getInputTopicSubscriptionName
String getInputTopicSubscriptionName()Returns the name of the subscription for which the dead letter or retry letter producer is being configured.- Returns:
- a
Stringrepresenting the subscription name
-
getInputTopicConsumerName
String getInputTopicConsumerName()Returns the name of the consumer for which the dead letter or retry letter producer is being configured.- Returns:
- a
Stringrepresenting the consumer name
-