shirenchuang opened a new issue, #7128:
URL: https://github.com/apache/rocketmq/issues/7128
### Is Your Feature Request Related to a Problem?
If I want to customize SendMessageHook, only through the following form
```java
DefaultMQProducer producer = new DefaultMQProducer(groupName, new
SzzProducerRPCHook(), true, null);
producer.setNamesrvAddr(DEFAULT_NAMESRVADDR);
// My meesageHook
producer.getDefaultMQProducerImpl().registerSendMessageHook(new
SzzMessageHook());
```
This method is not very convenient to expand, hope to support the form of
SPI to support
### Describe the Solution You'd Like
Load the custom HOOK through SPI;
Of course, not only SendMessageHook is considered, I think most of some
HOOKs need to support the form of SPI
### Describe Alternatives You've Considered
SPI
### Additional Context
I want to do some business processing when sending messages;
--
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]