public final class Address extends Object implements IdentifiedDataSerializable
| Modifier and Type | Field and Description |
|---|---|
static int |
ID |
| Constructor and Description |
|---|
Address() |
Address(Address address) |
Address(InetAddress inetAddress,
int port) |
Address(InetSocketAddress inetSocketAddress) |
Address(String hostname,
InetAddress inetAddress,
int port) |
Address(String host,
int port) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
int |
getFactoryId() |
String |
getHost() |
int |
getId() |
InetAddress |
getInetAddress() |
InetSocketAddress |
getInetSocketAddress() |
int |
getPort() |
String |
getScopedHost() |
String |
getScopeId() |
int |
hashCode() |
boolean |
isIPv4() |
boolean |
isIPv6() |
void |
readData(ObjectDataInput in) |
void |
setScopeId(String scopeId) |
String |
toString() |
void |
writeData(ObjectDataOutput out) |
public static final int ID
public Address()
public Address(String host, int port) throws UnknownHostException
UnknownHostExceptionpublic Address(InetAddress inetAddress, int port)
public Address(InetSocketAddress inetSocketAddress)
public Address(String hostname, InetAddress inetAddress, int port)
public Address(Address address)
public void writeData(ObjectDataOutput out) throws IOException
writeData in interface DataSerializableIOExceptionpublic void readData(ObjectDataInput in) throws IOException
readData in interface DataSerializableIOExceptionpublic String getHost()
public int getPort()
public InetAddress getInetAddress() throws UnknownHostException
UnknownHostExceptionpublic InetSocketAddress getInetSocketAddress() throws UnknownHostException
UnknownHostExceptionpublic boolean isIPv4()
public boolean isIPv6()
public String getScopeId()
public void setScopeId(String scopeId)
public String getScopedHost()
public int getFactoryId()
getFactoryId in interface IdentifiedDataSerializablepublic int getId()
getId in interface IdentifiedDataSerializableCopyright © 2021 Hazelcast, Inc.. All rights reserved.