Package org.apache.qpid.protonj2.client
Class ReconnectLocation
- java.lang.Object
-
- org.apache.qpid.protonj2.client.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 newReconnectLocation
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()
-
-
-
Constructor Detail
-
ReconnectLocation
public ReconnectLocation(java.lang.String host, int port)
Creates a newReconnectLocation
instance with the fixed host and port values.- Parameters:
host
- The remote host where the connection will be madeport
- 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 classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-