Huawei
Huawei

Reputation: 85

How does ActiveMQPrefetchPolicy work? What does queueBrowserPrefetch mean?

I'm trying to use ActiveMQPrefetchPolicy but cannot quite understand how to use it.

I'm using queue, there are 3 params that I can define for PrefetchPolicy:

queuePrefetch, queueBrowserPrefetch, inputStreamPrefetch

Actually I don't get the meaning of queueBrowserPrefetch and inputStreamPrefetch so I do not know how to use it.

Upvotes: 3

Views: 2634

Answers (1)

jkysam
jkysam

Reputation: 5779

I assume that you have seen the ActiveMQ page on prefetch limits.

  • queueBrowserPrefetch sets the maximum number of messages sent to a
    ActiveMQQueueBrowser until acks are received.
  • inputStreamPrefetch sets the maximum number of messages sent
    through a jms-stream until acks are received

Both queue-browser and jms-stream are specialized consumers. You can read more about each one of them but if you are not using them it won't matter what you assign to their prefetch limits.

Upvotes: 3

Related Questions