Class ReconnectConfiguration


  • public class ReconnectConfiguration
    extends Object
    Container of configuration variables used when reconnecting to a channel.
    • Constructor Detail

      • ReconnectConfiguration

        public ReconnectConfiguration​(long connectTimeout,
                                      long reconnectInterval,
                                      boolean forcePlatformReconnect,
                                      TimeUnit timeUnit)
        Construct a new ReconnectConfiguration.
        Parameters:
        connectTimeout - a long defining the connect timeout
        reconnectInterval - a long defining the interval when to reconnect
        forcePlatformReconnect - a boolean defining whether a platform reconnect should be enforced
        timeUnit - the TimeUnit used for both the connectTimeout and reconnectInterval
    • 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