开发者

ActiveMQ-CPP prefetchSize 3.2.2

So far I am unable to get the prefetch size to function.

I have tried:

mySession->cr开发者_StackOverflow中文版eateQueue([quename]?consumer.prefetchSize=5);

tcp://localhost:61616?prefetchPolicy.all=5

I am using the cms::Connection and cms::Consumers. Would I have to switch over to the activemq::core?

Thanks


The version you are using is to old, the v3.2.4 should address the application of destination options, and I think you need to go to v3.4.0 if you want to use prefectchPolicy.all

The other option is to cast the connection to an ActiveMQConnection and set the policy options directly before creating the consumer.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜