magestacks opened a new issue, #8570:
URL: https://github.com/apache/rocketmq/issues/8570
### Before Creating the Enhancement Request
- [X] I have confirmed that this should be classified as an enhancement
rather than a bug/feature.
### Summary
Multiple `RocketMQTemplate#syncSendDelayTimeSeconds` overloaded methods do
not support a custom `timeout` parameter.
The `RocketMQTemplate#syncSend` method that supports custom configurations
is private.
```java
/**
* Same to {@link #syncSend(String, Message)} with send timeout and delay
time specified in addition.
* This function is only valid when the broker version is 5.0 or above
*
* @param destination formats: `topicName:tags`
* @param message {@link org.springframework.messaging.Message}
* @param timeout send timeout with millis
* @param delayTime delay time for message
* @return {@link SendResult}
*/
private SendResult syncSend(String destination, Message<?> message, long
timeout, long delayTime, DelayMode mode) {
// ......
}
```
### Motivation
Hope to include a custom `timeout` parameter when sending any delayed
messages.
### Describe the Solution You'd Like
Add an additional overloaded method for
`RocketMQTemplate#syncSendDelayTimeSeconds`, or change the visibility of the
`RocketMQTemplate#syncSend` method to public.
If you agree with this enhancement, I can submit a PR.
### Describe Alternatives You've Considered
Add an additional overloaded method for
`RocketMQTemplate#syncSendDelayTimeSeconds`, or change the visibility of the
`RocketMQTemplate#syncSend` method to public.
### Additional Context
_No response_
--
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]