public class ReconnectionSettings extends Object
Part of HandlerSettings. When Number is greater than zero and a
session is lost unexpectedly, the handler ends that session and then makes up to
Number + 1 connection attempts - one immediately, then up to Number retries
Interval seconds apart - reusing the logon that established the lost
session. Each attempt starts a fresh ETI session, so the outbound sequence number restarts at 1.
If every attempt fails the handler stays HandlerState.DISCONNECTED. A later loss starts
the cycle again with a fresh attempt budget; there is no cumulative cap. Set Number to 0 to
disable automatic reconnection.
The same budget applies to every connect() the application issues, the first one
included: a connect request that cannot reach the exchange is retried up to Number times
before the handler settles on HandlerState.DISCONNECTED.
| Constructor and Description |
|---|
ReconnectionSettings() |
| Modifier and Type | Method and Description |
|---|---|
int |
getInterval()
Returns interval between reconnects in seconds.
|
int |
getNumber()
Returns number of reconnect.
|
void |
setInterval(int interval)
Sets the interval between reconnects in seconds.
|
void |
setNumber(int number)
Sets the number of reconnects.
|
String |
toString() |
public int getNumber()
public void setNumber(int number)
number - number of reconnectspublic int getInterval()
public void setInterval(int interval)
interval - interval between reconnects in secondsCopyright © 2012–2026 Onix Solutions. All rights reserved.