poorbarcode commented on code in PR #21246:
URL: https://github.com/apache/pulsar/pull/21246#discussion_r1373313071
##########
pulsar-client-api/src/main/java/org/apache/pulsar/client/api/ConsumerBuilder.java:
##########
@@ -831,6 +831,16 @@ public interface ConsumerBuilder<T> extends Cloneable {
*/
ConsumerBuilder<T> autoScaledReceiverQueueSizeEnabled(boolean enabled);
+ /**
+ * Sets the {@link SubscriptionIsolationLevel} for the consumer.
+ *
+ * @param subscriptionIsolationLevel If READ_COMMITTED is selected, the
Consumer can only consume all transactional messages which have been committed,
+ * else if READ_UNCOMMITTED is selected,
the Consumer can consume all messages, even transactional messages which have
been aborted.
+ * Note that this is a subscription
dimension configuration, and all consumers under the same subscription need to
be configured with the same IsolationLevel.
Review Comment:
You can set up your IDE by following this doc:
https://pulsar.apache.org/contribute/setup-ide/
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]