|
Oracle® Coherence Java API Reference v3.5 E14977-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.tangosol.net.CompositeAddressProvider.SingleProvider
protected class CompositeAddressProvider.SingleProvider
AddressProvider wrapper for a single address dynamically added to this AddressSet.
| Field Summary | |
|---|---|
protected java.net.InetSocketAddress |
m_address
The single address that this AddressProvider represents. |
protected boolean |
m_fExhausted
Is this AddressProvider exhausted? |
| Constructor Summary | |
|---|---|
protected |
CompositeAddressProvider.SingleProvider(java.net.InetSocketAddress address)
Constructor |
| Method Summary | |
|---|---|
void |
accept()
This method should be called by the client immediately after it determines that it can successfully use an address returned by the AddressProvider.getNextAddress() method. |
boolean |
equals(java.lang.Object o)
AddressProvider instances are considered equivalent iff they consistently produce the same resulting set of addresses. |
java.net.InetSocketAddress |
getNextAddress()
Obtain a next available address to use. |
int |
hashCode()
Return the hash code for this AddressProvider. |
void |
reject(java.lang.Throwable eCause)
This method should be called by the client immediately after it determines that an attempt to use an address returned by the AddressProvider.getNextAddress()
method has failed. |
| Field Detail |
|---|
protected java.net.InetSocketAddress m_address
protected boolean m_fExhausted
| Constructor Detail |
|---|
protected CompositeAddressProvider.SingleProvider(java.net.InetSocketAddress address)
| Method Detail |
|---|
public java.net.InetSocketAddress getNextAddress()
AddressProvider.accept() method.
getNextAddress in interface AddressProviderpublic void accept()
AddressProvider.getNextAddress() method.
accept in interface AddressProviderpublic void reject(java.lang.Throwable eCause)
AddressProvider.getNextAddress()
method has failed.
reject in interface AddressProvidereCause - (optional) an exception that carries the reason why the
the caller rejected the previously returned addresspublic boolean equals(java.lang.Object o)
equals in interface AddressProvidero - the Object to compare this AddressProvider to for equality
public int hashCode()
hashCode in interface AddressProvider
|
Oracle® Coherence Java API Reference v3.5 E14977-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||