How does ActiveMQPrefetchPolicy work? What does queueBrowserPrefetch mean?

I am trying to use ActiveMQPrefetchPolicy but cannot figure out how to use it.

I am using a queue, there are 3 parameters that I can define for the PrefetchPolicy:

queuePrefetch, queueBrowserPrefetch, inputStreamPrefetch

Actually, I don't understand the meaning of queueBrowserPrefetch and inputStreamPrefetch, so I don't know how to use it.

+3


source to share


1 answer


I'm assuming you've seen the ActiveMQ page at prefetch limits .

  • queueBrowserPrefetch sets the maximum number of messages sent to ActiveMQQueueBrowser until values ​​are received.
  • inputStreamPrefetch sets the maximum number of messages sent
    via jms-stream until characters are received


Both browser queues and jms stream are specialized consumers. You can read more about each of these, but if you don't use them, it doesn't matter what you assign to your prefetch limits.

+3


source







All Articles