mxsm opened a new issue, #5049:
URL: https://github.com/apache/rocketmq/issues/5049
### **FEATURE REQUEST**
#### Feature describe
There have many Hook interface in RMQ, e.g: `SendMessageHook`
`ConsumeMessageHook` `PutMessageHook` etc. when its add to list,The order of
execution is the order in which it is added to the list. so we can add a order
for Hook interface, and sorted hook which it is added to the same list
#### Solution
In hook interface add a method:
```java
default int order(){
return Integer.MIN_VALUE;
}
```
when hook is added into list then sorted by order number. Smaller values
are executed first
#### Advantage
- Control over the order of execution is implemented through the interface,
not through the order of joining the list
--
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]