|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
com.tangosol.net.ConfigurableAddressProvider.AddressHolder
protected class ConfigurableAddressProvider.AddressHolder
A stateful holder for an obtaining an InetSocketAddress object.
| Field Summary | |
|---|---|
protected int |
m_nPortThe configured port. |
protected String |
m_sHostThe configured address, either hostname or IP address. |
| Constructor Summary | |
|---|---|
protected |
ConfigurableAddressProvider.AddressHolder(String sHost, int nPort)Construct an AddressHolder for the specified host and port. |
| Method Summary | |
|---|---|
boolean |
equals(Object o)Return true iff this AddressHolder is equal to the specified Object. |
InetSocketAddress |
getAddress()Obtain the underlying address. |
int |
hashCode()Return the hash code for this AddressHolder. |
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 unresolveable. |
protected void |
setPending(boolean fPending)Set or clear the "pending" flag. |
protected void |
setReported(boolean fReported)Set of clear the "reported" flag. |
| Field Detail |
|---|
protected String m_sHost
protected int m_nPort
| Constructor Detail |
|---|
protected ConfigurableAddressProvider.AddressHolder(String sHost,
int nPort)
sHost - the hostnamenPort - the port number| Method Detail |
|---|
public InetSocketAddress getAddress()
protected boolean isPending()
protected void setPending(boolean fPending)
fPending - the flag valueprotected boolean isReported()
protected void setReported(boolean fReported)
fReported - the flag valuepublic boolean equals(Object o)
o - the object to compare to this AddressHolder for equalitypublic int hashCode()
|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||