How do I set the prefetch limit for NMS listener c

2019-07-24 00:24发布

Other than on the connection URL, how do I set the prefetch limit in spring config. I can't find any doc on any of the properties and the param on the Connection URL doesn't seem to work. Besides, I need to do this on the consumer level. Here is my config below.

   <nms:listener-container 
    connection-factory="SingleConnectionFactory" 
    concurrency="${GraphManagerService.NMS.Consumers}"
    auto-startup="false">
    <nms:listener ref="MessageListenerAdapter" destination="${GraphManagerService.NMS.QueueName}" />
   </nms:listener-container>

标签: activemq nms
1条回答
再贱就再见
2楼-- · 2019-07-24 00:40

To do this on a per-consumer basis you add the option to the destination.

myQueue?consumer.prefetchSize=10

查看更多
登录 后发表回答