|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-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 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 SocketAddressProvider.getNextAddress() method. |
boolean |
equals(java.lang.Object o) SocketAddressProvider instances are considered equivalent iff they consistently produce the same resulting set of addresses. |
java.net.InetSocketAddress |
getNextAddress() Covariant of SocketAddressProvider.getNextAddress() which returns an InetSocketAddress . |
int |
hashCode() Return the hash code for this SocketAddressProvider. |
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 SocketAddressProvider.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()
SocketAddressProvider.getNextAddress()
which returns an InetSocketAddress
.getNextAddress
in interface AddressProvider
getNextAddress
in interface SocketAddressProvider
public void accept()
SocketAddressProvider.getNextAddress()
method.accept
in interface SocketAddressProvider
public void reject(java.lang.Throwable eCause)
SocketAddressProvider.getNextAddress()
method has failed.reject
in interface SocketAddressProvider
eCause
- (optional) an exception that carries the reason why the the caller rejected the previously returned addresspublic boolean equals(java.lang.Object o)
Note: the general contract of hashCode and equals() should be preserved; AddressProviders that are "equal" should produce the same hashCode.
equals
in interface SocketAddressProvider
o
- the Object to compare this SocketAddressProvider to for equalitypublic int hashCode()
hashCode
in interface SocketAddressProvider
|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |