Class ReconnectLocation

java.lang.Object
org.apache.qpid.protonj2.client.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 Details

    • 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 Details

    • 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
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object