You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2019/08/24 03:34:23 UTC

[GitHub] [rocketmq-spring] leizihui commented on issue #123: How to set shardingKey in RocketMQTemplate?

leizihui commented on issue #123: How to set shardingKey in RocketMQTemplate?
URL: https://github.com/apache/rocketmq-spring/issues/123#issuecomment-524514708
 
 
   > @leizihui Setting shardingKey is not supported in RocketMQTemplate yet, but you can set MessageQueueSelector to send ordered messages.
   > 
   > ```java
   > rocketMQTemplate.setMessageQueueSelector(new MessageQueueSelector() {
   >    public MessageQueue select(List<MessageQueue> mqs, org.apache.rocketmq.common.message.Message msg,
   >                 Object arg) {
   >                 ……
   >    }
   > });
   > ```
   
   thanks,understood!

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services