wso2 / andes

Apache License 2.0
39 stars 128 forks source link

Make redelivery delay a configurable connection option #969

Closed Nirothipan closed 6 years ago

Nirothipan commented 6 years ago

Fix https://github.com/wso2/product-ei/issues/1952

Purpose

Currently redelivery delay can be set as System Property "AndesRedeliveryDelay". With this fix, we are enabling for the delay to be set as a connection string in addition to system property.

Goals

Making redelivery delay a connection parameter.

Approach

Adding a connection option named redeliverydelay for the connection url.

Eg:-

connectionfactory.QueueConnectionFactory = amqp://admin:admin@clientID/carbon?brokerlist='tcp://localhost:5673' connectionfactory.QueueConnectionFactory1 = amqp://admin:admin@clientID/carbon?redeliverydelay='15000'&brokerlist='tcp://localhost:5673'

Release note

With this fix, users can configure redelivery delay as a connection option.

Documentation

https://docs.wso2.com/display/MB320/Setting+the+Connection+URL

Automation tests

Security checks

Test environment

JDK 1.8, Ubuntu 16.04, WSO2 MB 3.2.0 , EI 6.1.1