public class ReconnectConfiguration extends Object
| Constructor and Description |
|---|
ReconnectConfiguration(long connectTimeout,
long reconnectInterval,
boolean forcePlatformReconnect,
TimeUnit timeUnit)
Construct a new
ReconnectConfiguration. |
| Modifier and Type | Method and Description |
|---|---|
long |
getConnectTimeout()
Return the configured connect timeout.
|
long |
getReconnectInterval()
Return the configured reconnect timeout.
|
TimeUnit |
getTimeUnit()
|
boolean |
isForcePlatformReconnect()
Return whether a platform reconnect should be enforced.
|
public ReconnectConfiguration(long connectTimeout,
long reconnectInterval,
boolean forcePlatformReconnect,
TimeUnit timeUnit)
ReconnectConfiguration.connectTimeout - a long defining the connect timeoutreconnectInterval - a long defining the interval when to reconnectforcePlatformReconnect - a boolean defining whether a platform reconnect should be enforcedtimeUnit - the TimeUnit used for both the connectTimeout and reconnectIntervalpublic long getConnectTimeout()
public long getReconnectInterval()
public boolean isForcePlatformReconnect()
public TimeUnit getTimeUnit()
TimeUnit used by getConnectTimeout() and getReconnectInterval()Copyright © 2020–2022 AxonIQ BV. All rights reserved.