...
Method | Description | ||
---|---|---|---|
singlebroker | This will only use the first broker in the list. | ||
roundrobin | This method tries each broker in turn. | ||
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="5ce25df4-189c-4f07-91ea-1f507f8868cb"><ac:plain-text-body><![CDATA[ | nofailover | [New in 0.5] This method disables all retry and failover logic. | ]]></ac:plain-text-body></ac:structured-macro> |
The current defaults are naturally to use the 'singlebroker' when only one broker is present and the 'roundrobin' method with multiple brokers. The '''method''' value in the URL may also be any valid class on the classpath that implements the FailoverMethod
interface.
The 'nofailover' method is useful if you are using a 3rd party tool such as Mule that has its own reconnection strategy that you wish to use.
Options
Option | Default | Description |
---|---|---|
cyclecount | 01 | The number of times to loop through the list of available brokers before failure. |
Note: Default was changed from 0 to 1 in Release 0.5
Sample URLs
No Format |
---|
amqp:///test?brokerlist='localhost'
amqp:///test?brokerlist='tcp://anotherhost:5684?retries='10''
amqp://guest:guest@/test?brokerlist='vm://:1;vm://:2'&failover='roundrobin'
amqp://guest:guest@/test?brokerlist='vm://:1;vm://:2'&failover='roundrobin?cyclecount='20''
amqp://guest:guest@client/test?brokerlist='tcp://localhost;tcp://redundant-server:5673?ssl='true''&failover='roundrobin'
amqp://guest:guest@/test?brokerlist='vm://:1'&failover='nofailover'
|