guyinyou commented on a change in pull request #3718:
URL: https://github.com/apache/rocketmq/pull/3718#discussion_r782872852



##########
File path: 
client/src/main/java/org/apache/rocketmq/client/producer/DefaultMQProducer.java
##########
@@ -197,20 +208,21 @@ public DefaultMQProducer(final String producerGroup, 
RPCHook rpcHook) {
     /**
      * Constructor specifying namespace, producer group and RPC hook.
      *
-     * @param namespace Namespace for this MQ Producer instance.
+     * @param namespace     Namespace for this MQ Producer instance.
      * @param producerGroup Producer group, see the name-sake field.
-     * @param rpcHook RPC hook to execute per each remoting command execution.
+     * @param rpcHook       RPC hook to execute per each remoting command 
execution.
      */
     public DefaultMQProducer(final String namespace, final String 
producerGroup, RPCHook rpcHook) {
         this.namespace = namespace;
         this.producerGroup = producerGroup;
         defaultMQProducerImpl = new DefaultMQProducerImpl(this, rpcHook);
+        produceAccumulator = 
MQClientManager.getInstance().getOrCreateProduceAccumulator(this);

Review comment:
       ```
   producer.setAutoBatch(true);
   producer.batchMaxDelayMs(xxx);
   producer.batchMaxBytes(xxx);
   producer.totalBatchMaxBytes(xxx);
   ```
   The usage of the interface, after being exposed to the user, should support 
that he can call at any time




-- 
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]


Reply via email to