Yeah, it's already have a enum in BacklogQuota named RetentionPolicy
```java
public static enum RetentionPolicy {
        /** Policy which holds producer's send request until the resource 
becomes available (or holding times out) */
        producer_request_hold,

        /** Policy which throws javax.jms.ResourceAllocationException to the 
producer */
        producer_exception,

        /** Policy which evicts the oldest message from the slowest consumer's 
backlog */
        consumer_backlog_eviction,
    }
```

[ Full content available at: 
https://github.com/apache/incubator-pulsar/pull/2460 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to