Instead of providing constructor overloads, we could use interface and builder approach like in other parts of the API. That way the code will long more descriptive.
Eg:
```java
/// This
DeadLetterPolicy.builder()
.maxRedeliverCount(10)
.deadLetterTopic("my-dql-topic")
.build()
// Instead of
new DeadLetterPolicy(10, "my-dql-topic")
```
[ Full content available at:
https://github.com/apache/incubator-pulsar/pull/2508 ]
This message was relayed via gitbox.apache.org for [email protected]
