【问题标题】:Apache ActiveMQ Artemis equivalent of Prefetch PolicyApache ActiveMQ Artemis 相当于 Prefetch Policy
【发布时间】:2019-01-21 09:06:42
【问题描述】:

我的任务是使用 Camel 2.22.0 将 ActiveMQ v5.10.0 代码迁移到 Artemis 2.6.0 并遇到预取策略问题。以下代码的 Artemis 等价物是什么:

ActiveMQPrefetchPolicy prefetchPolicy = new ActiveMQPrefetchPolicy();
prefetchPolicy.setQueuePrefetch(0);
prefetchPolicy.setQueueBrowserPrefetch(0); 
connectionFactory.setPrefetchPolicy(prefetchPolicy);

非常感谢。

【问题讨论】:

    标签: apache-camel activemq-artemis


    【解决方案1】:

    Artemis 支持 OpenWire,因此我相信您应该能够继续使用旧代码。但是,如果您出于某种原因想要更改等效属性是 consumerWindowSize 并且可以在用于连接到代理的 URL 上设置它,例如tcp://host:61616?consumerWindowSize=0.

    【讨论】:

    • 成功了,谢谢。我会记住能够将现有的 ArctiveMQ 代码与 Artemis 一起使用。
    猜你喜欢
    • 2021-10-09
    • 2020-10-09
    • 1970-01-01
    • 1970-01-01
    • 2019-09-30
    • 1970-01-01
    • 2020-07-10
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多