apache / apache/rocketmq-spring
为什么不把tags作为send方法的独立的入参,而要把topic和tags融合成一个String类型的destination字段
Open
question
- Dominant language
- Java
- Stars
- 2.3k
- Forks
- 943
- PR merge metrics
- No merged PRs in 30d
Description
> String[] tempArr = destination.split(":", 2);
> String topic = tempArr[0];
> String tags = "";
> if (tempArr.length > 1) {
> tags = tempArr[1];
> }
> Message rocketMsg = new Message(topic, tags, payloads);
上述代码体现你构建RocketMq的Message时的参数,由于topic和tags融合成一个String类型的destination字段,所以在需要设置tags发送时需要进行destination字段的装箱操作,这很不利于api的便捷调用
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.