public static class ConfigurableAddressProvider.AddressHolder extends Object
Modifier and Type | Field | Description |
---|---|---|
protected int |
m_nPort |
The configured port.
|
protected String |
m_sHost |
The configured address, either hostname or IP address.
|
Constructor | Description |
---|---|
AddressHolder(String sHost,
int nPort) |
Construct an AddressHolder for the specified host and port.
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
equals(Object o) |
Return true iff this ProvidedAddress is equal to the specified
Object.
|
protected String |
getHost() |
Return the host name.
|
protected int |
getPort() |
Return the port number.
|
int |
hashCode() |
Return the hash code for this ProvidedAddress.
|
protected boolean |
isPending() |
Check whether or not the underlying address has been accepted.
|
protected boolean |
isReported() |
Check whether or not the underlying address has been reported
as unresolvable.
|
protected void |
setPending(boolean fPending) |
Set or clear the "pending" flag.
|
protected void |
setReported(boolean fReported) |
Set of clear the "reported" flag.
|
ConfigurableAddressProvider.AddressHolder |
validate() |
Throw IllegalArgumentException if any values are invalid.
|
protected String m_sHost
protected int m_nPort
public AddressHolder(String sHost, int nPort)
sHost
- the hostnamenPort
- the port numberpublic ConfigurableAddressProvider.AddressHolder validate()
protected boolean isPending()
protected void setPending(boolean fPending)
fPending
- the flag valueprotected boolean isReported()
protected void setReported(boolean fReported)
fReported
- the flag valueprotected String getHost()
protected int getPort()
public boolean equals(Object o)