Skip to content

Commit 77971e4

Browse files
Fix java doc for key shared policy. (#6341)
The key shared policy does not support setting the maximum key hash range, so fix the java doc.
1 parent 7d4df99 commit 77971e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pulsar-client-api/src/main/java/org/apache/pulsar/client/api/ConsumerBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ public interface ConsumerBuilder<T> extends Cloneable {
542542
* <p>Or
543543
* <pre>
544544
* client.newConsumer()
545-
* .keySharedPolicy(KeySharedPolicy.autoSplitHashRange().hashRangeTotal(100))
545+
* .keySharedPolicy(KeySharedPolicy.autoSplitHashRange())
546546
* .subscribe();
547547
* </pre>
548548
* Details about auto split hash range policy, please see {@link KeySharedPolicy.KeySharedPolicyAutoSplit}.

0 commit comments

Comments
 (0)