codelipenghui commented on issue #5788: [pulsar-java-client] Decouple partition 
switch frequency with maxPublishDelay in producer configuration
URL: https://github.com/apache/pulsar/pull/5788#issuecomment-562405172
 
 
   @sijie I have discussed with yijie, i'm not sure use a custom router is 
reasonable here. we can support setting frequency in 
RoundRobinPartitionMessageRouterImpl and user use it like:
   
   ```
   newProducer().router(new RoundRobinPartitionMessageRouterImpl(int frequency))
   ```
   
   Which can reduces `ProducerConfigurationData` complexity since we all ready 
have  routeMode and customRouter there.

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to