Package org.infinispan.server.hotrod
Class SingleHomedServerAddress
- java.lang.Object
-
- org.infinispan.server.hotrod.SingleHomedServerAddress
-
- All Implemented Interfaces:
ServerAddress
public class SingleHomedServerAddress extends Object implements ServerAddress
A Hot Rod server address- Since:
- 5.1
- Author:
- Galder ZamarreƱo
-
-
Constructor Summary
Constructors Constructor Description SingleHomedServerAddress(String host, int port)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetHost(InetAddress localAddress)Returns the mapping for theintgetPort()inthashCode()StringtoString()
-
-
-
Constructor Detail
-
SingleHomedServerAddress
public SingleHomedServerAddress(String host, int port)
-
-
Method Detail
-
getHost
public String getHost(InetAddress localAddress)
Description copied from interface:ServerAddressReturns the mapping for the- Specified by:
getHostin interfaceServerAddress- Returns:
-
getPort
public int getPort()
- Specified by:
getPortin interfaceServerAddress
-
-