3

我正在尝试使用 ActiveMQPrefetchPolicy,但不太了解如何使用它。

我正在使用队列,我可以为 PrefetchPolicy 定义 3 个参数:

queuePrefetch、queueBrowserPrefetch、inputStreamPrefetch

其实我不明白 queueBrowserPrefetch 和 inputStreamPrefetch 的含义,所以我不知道如何使用它。

4

1 回答 1

3

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.

于 2012-04-05T16:22:37.953 回答