| Option Name |
Default Value |
Description |
| initialReconnectDelay |
10 |
How long to wait before the first reconnect attempt (in ms) |
| maxReconnectDelay |
30000 |
The maximum amount of time we ever wait between reconnect attempts (in ms) |
| useExponentialBackOff |
true |
Should an exponential backoff be used btween reconnect attempts |
| reconnectDelayExponent |
2.0 |
The exponent used in the exponential backoff attempts |
| maxReconnectAttempts |
-1 | 0 |
From version 5.6 onwards: -1 is default and means retry forever, 0 means don't retry (only try connection once but no retry). Prior to version 5.6: 0 is default and means retry forever. All versions: If set to >0, then this is the maximum number of reconnect attempts before an error is sent back to the client. |
| startupMaxReconnectAttempts0 |
-1 |
If not 0, then this is the maximum number of reconnect attempts before an error is sent back to the client on the first attempt by the client to start a connection, once connected the maxReconnectAttempts option takes precedence. A value of -1 signifies that the transport will have no limit to the number of initial connection attempts. |
| randomize |
true |
use a random algorithm to choose the the URI to use for reconnect from the list provided |
| backup |
false |
initialize and hold a second transport connection - to enable fast failover |
| timeout |
-1 |
Enables timeout on send operations (in miliseconds) without interruption of reconnection process |
| trackMessages |
false |
keep a cache of in-flight messages that will flushed to a broker on reconnect |
| maxCacheSize |
131072 |
size in bytes for the cache, if trackMessages is enabled |
| updateURIsSupported |
true |
Determines whether the client should accept updates to its list of known URIs from the connected broker. Added in ActiveMQ 5.4 |
| updateURIsURL |
null |
A URL (or path to a local file) to a text file containing a comma separated list of URIs to use for reconnect in the case of failure. Added in ActiveMQ 5.4 |
| nested.* |
null |
Extra options to add to the nested URLs. Added in ActiveMQ 5.9 |
| warnAfterReconnectAttempts.* |
10 |
After every N reconnect attempts log a warning to indicate there is no connection but that we are still trying, set to <= 0 to disable. Added in ActiveMQ 5.10 |
| reconnectSupported |
true |
Determines whether the client should respond to broker ConnectionControl events with a reconnect (see: rebalanceClusterClients) |