public class InetSocketTransportAddress extends Object implements TransportAddress
InetSocketAddress
).Constructor and Description |
---|
InetSocketTransportAddress(InetAddress address,
int port) |
InetSocketTransportAddress(InetSocketAddress address) |
InetSocketTransportAddress(String hostname,
int port) |
Modifier and Type | Method and Description |
---|---|
InetSocketAddress |
address() |
boolean |
equals(Object o) |
int |
hashCode() |
void |
readFrom(StreamInput in) |
static InetSocketTransportAddress |
readInetSocketTransportAddress(StreamInput in) |
boolean |
sameHost(TransportAddress other) |
static void |
setResolveAddress(boolean resolveAddress) |
String |
toString() |
short |
uniqueAddressTypeId() |
void |
writeTo(StreamOutput out) |
public InetSocketTransportAddress(String hostname, int port)
public InetSocketTransportAddress(InetAddress address, int port)
public InetSocketTransportAddress(InetSocketAddress address)
public static void setResolveAddress(boolean resolveAddress)
public static InetSocketTransportAddress readInetSocketTransportAddress(StreamInput in) throws IOException
IOException
public short uniqueAddressTypeId()
uniqueAddressTypeId
in interface TransportAddress
public boolean sameHost(TransportAddress other)
sameHost
in interface TransportAddress
public InetSocketAddress address()
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
IOException
Copyright © 2009–2015. All rights reserved.