Class ReconnectLocation


  • public class ReconnectLocation
    extends java.lang.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 Summary

      Constructors 
      Constructor Description
      ReconnectLocation​(java.lang.String host, int port)
      Creates a new ReconnectLocation instance with the fixed host and port values.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      java.lang.String getHost()  
      int getPort()  
      int hashCode()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ReconnectLocation

        public ReconnectLocation​(java.lang.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 java.lang.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 java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object