Here I am using spring-cloud-starter-stream-rocketmq and spring-message to send message dn,
e.g.
Message m = MessageBuilder.withPayload(obj).setHeader(RocketMQHeaders.TAGS, tag).build();
MessageChannel.output().send(m);
But I want to set the message expire time in the queue if that not be consumed.
I know the rocketmq could set the ttl, but I don't know whether that can be set for different message and how can be used in the code before?
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…