codelipenghui commented on a change in pull request #4621: [PIP-38] Support 
batch receive in java client.
URL: https://github.com/apache/pulsar/pull/4621#discussion_r312737067
 
 

 ##########
 File path: 
pulsar-client/src/main/java/org/apache/pulsar/client/impl/ConsumerBuilderImpl.java
 ##########
 @@ -314,6 +315,14 @@ public ConsumerBuilderImpl(PulsarClientImpl client, 
Schema<T> schema) {
         return this;
     }
 
+    @Override
+    public ConsumerBuilder<T> batchReceivePolicy(BatchReceivePolicy 
batchReceivePolicy) {
+        checkArgument(batchReceivePolicy != null, "batchReceivePolicy must not 
be null.");
 
 Review comment:
   I see all the validations are still in ConsumerBuilderImpl.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to