Class ReconnectConfiguration
- java.lang.Object
-
- io.axoniq.axonserver.connector.impl.ReconnectConfiguration
-
public class ReconnectConfiguration extends Object
Container of configuration variables used when reconnecting to a channel.
-
-
Constructor Summary
Constructors Constructor Description ReconnectConfiguration(long connectTimeout, long reconnectInterval, boolean forcePlatformReconnect, TimeUnit timeUnit)Construct a newReconnectConfiguration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetConnectTimeout()Return the configured connect timeout.longgetReconnectInterval()Return the configured reconnect timeout.TimeUnitgetTimeUnit()booleanisForcePlatformReconnect()Return whether a platform reconnect should be enforced.
-
-
-
Constructor Detail
-
ReconnectConfiguration
public ReconnectConfiguration(long connectTimeout, long reconnectInterval, boolean forcePlatformReconnect, TimeUnit timeUnit)Construct a newReconnectConfiguration.- Parameters:
connectTimeout- alongdefining the connect timeoutreconnectInterval- alongdefining the interval when to reconnectforcePlatformReconnect- abooleandefining whether a platform reconnect should be enforcedtimeUnit- theTimeUnitused for both theconnectTimeoutandreconnectInterval
-
-
Method Detail
-
getConnectTimeout
public long getConnectTimeout()
Return the configured connect timeout.- Returns:
- the configured connect timeout
-
getReconnectInterval
public long getReconnectInterval()
Return the configured reconnect timeout.- Returns:
- the configured reconnect timeout
-
isForcePlatformReconnect
public boolean isForcePlatformReconnect()
Return whether a platform reconnect should be enforced.- Returns:
- whether a platform reconnect should be enforced
-
getTimeUnit
public TimeUnit getTimeUnit()
- Returns:
- the configured
TimeUnitused bygetConnectTimeout()andgetReconnectInterval()
-
-