|
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.CompositeAddressProvider.SingleProvider
protected class CompositeAddressProvider.SingleProvider
AddressProvider wrapper for a single address dynamically added to this AddressSet.
Field Summary | |
---|---|
protected InetSocketAddress |
m_address The single address that this AddressProvider represents. |
protected boolean |
m_fExhausted Is this AddressProvider exhausted? |
Constructor Summary | |
---|---|
protected |
CompositeAddressProvider.SingleProvider(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(Object o) AddressProvider instances are considered equivalent iff they consistently produce the same resulting set of addresses. |
InetSocketAddress |
getNextAddress() Obtain a next available address to use. |
int |
hashCode() Return the hash code for this AddressProvider. |
void |
reject(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 InetSocketAddress m_address
protected boolean m_fExhausted
Constructor Detail |
---|
protected CompositeAddressProvider.SingleProvider(InetSocketAddress address)
Method Detail |
---|
public InetSocketAddress getNextAddress()
AddressProvider.accept()
method.getNextAddress
in interface AddressProvider
public void accept()
AddressProvider.getNextAddress()
method.accept
in interface AddressProvider
public void reject(Throwable eCause)
AddressProvider.getNextAddress()
method has failed.reject
in interface AddressProvider
eCause
- (optional) an exception that carries the reason why the the caller rejected the previously returned addresspublic boolean equals(Object o)
equals
in interface AddressProvider
o
- the Object to compare this AddressProvider to for equalitypublic int hashCode()
hashCode
in interface AddressProvider
|
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 |