apache / rocketmq-client-cpp

Apache RocketMQ cpp client
https://rocketmq.apache.org/
Apache License 2.0
366 stars 159 forks source link

Exposure ConsumeFromWhere function? #364

Open iambocai opened 3 years ago

iambocai commented 3 years ago

需求如题,我们目前使用rocketmq-client-python消费消息,业务不关心5分钟前的数据,所以需要在启动时设置consume_from_timestamp为五分钟前,以跳过老消息,降低消费者压力,但因为cpp client没有暴露ConsumeFromWhere 相关的设置接口,python client无法实现对应功能,希望cpp client可以暴露下ConsumeFromWhere 相关的get/set接口,谢谢!

vongosling commented 3 years ago

Would you like to pr it? the community will help you to check and merge:-)