Class ReconnectLocation


  • public class ReconnectLocation
    extends Object
    Represents a reconnection host used to track location and configuration for individual remote hosts that can be used to re-establish a connection on loss of connectivity.
    • Constructor Detail

      • ReconnectLocation

        public ReconnectLocation​(String host,
                                 int port)
        Creates a new ReconnectLocation instance with the fixed host and port values.
        Parameters:
        host - The remote host where the connection will be made
        port - The port on the remote where the connection attempt will be made.
    • Method Detail

      • getHost

        public String getHost()
        Returns:
        the host where the reconnect should attempt its reconnection.
      • getPort

        public int getPort()
        Returns:
        the port where the reconnect should attempt its connection.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object