juzzia opened a new issue, #803: URL: https://github.com/apache/rocketmq-clients/issues/803
### Programming Language of the Client Java ### Is Your Feature Request Related to a Problem? 客户端版本: `5.0.7` org.apache.rocketmq.client.apis包下的`Producer`,`Consumer`两个接口都没有提供增加`消息拦截器 org.apache.rocketmq.client.java.hook.MessageInterceptor`的api , 导致客户端要么自己包装一层消费者或者生产者去进行扩展,要么反射其实现类获取属性`compositedMessageInterceptor`去增加消息拦截器,行得通但是不优雅,所以希望官方从api层面提供增加消息拦截器的方法 ### Describe the Solution You'd Like 希望官方从api层面提供增加消息拦截器的方法 ### Describe Alternatives You've Considered * 从接口层面提供增加消息拦截器`addMessageInterceptor`方法,对实现加以约束 * 在`org.apache.rocketmq.client.apis.ClientConfiguration`配置类中增加 `Map<String,String> properties` 属性,在实现层通过 `key messageInterceptor`去获取用户定义的消息拦截器列表追加到内部消息拦截器集合中 ### 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]
