Package org.apache.qpid.protonj2.client
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 Summary
Constructors Constructor Description ReconnectLocation(String host, int port)
Creates a newReconnectLocation
instance with the fixed host and port values.
-
-
-
Constructor Detail
-
ReconnectLocation
public ReconnectLocation(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 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.
-
-