ActiveMQ单个对列配置重发数

<plugins>
        <redeliveryPlugin>
                <redeliveryPolicyMap>
                        <redeliveryPolicyMap>
                                <redeliveryPolicyEntries>
                                        <redeliveryPolicy queue="abcde" maximumRedeliveries="-1" />
                                </redeliveryPolicyEntries>
                        </redeliveryPolicyMap>
                </redeliveryPolicyMap>
        </redeliveryPlugin>

</plugins>




Redelivery Policy

Detail on when messages are redelivered to a client can be found in the Message Redelivery and DLQ Handling section.

You can configure the RedeliveryPolicy on your ActiveMQConnectionFactory or ActiveMQConnection to customize exactly how you want the redelivery to work.

You can use Java code, Spring or the Connection Configuration URI to customise this.

Available Properties

Property

Default Value

Description

collisionAvoidanceFactor

0.15

The percentage of range of collision avoidance if enabled

maximumRedeliveries

6

Sets the maximum number of times a message will be redelivered before it is considered a poisoned pill and returned to the broker so it can go to a Dead Letter Queue (use value -1 to define infinite number of redeliveries)

maximumRedeliveryDelay

-1

Sets the maximum delivery delay that will be applied if the useExponentialBackOff option is set. (use value -1 to define that no maximum be applied) (v5.5)

initialRedeliveryDelay

1000L

The initial redelivery delay in milliseconds

redeliveryDelay

1000L

The delivery delay if initialRedeliveryDelay is 0 (v5.4)

useCollisionAvoidance

false

Should the redelivery policy use collision avoidance

useExponentialBackOff

false

Should exponential back-off be used (i.e. to exponentially increase the timeout)

backOffMultiplier

5

The back-off multiplier 


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值