Oracle® Coherence Java API Reference
v3.5

E14977-01

com.tangosol.net
Class ConfigurableAddressProvider.AddressHolder

java.lang.Object
  extended by com.tangosol.net.ConfigurableAddressProvider.AddressHolder
Enclosing class:
ConfigurableAddressProvider

protected static class ConfigurableAddressProvider.AddressHolder
extends java.lang.Object

A stateful holder for an InetSocketAddress object.


Constructor Summary
protected ConfigurableAddressProvider.AddressHolder(java.net.InetSocketAddress address)
          Construct an AddressHolder for the specified InetSocketAddress.
 
Method Summary
 boolean equals(java.lang.Object o)
          Return true iff this AddressHolder is equal to the specified Object.
 java.net.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  void setPending(boolean fPending)
          Set or clear the "pending" flag.
 

Constructor Detail

ConfigurableAddressProvider.AddressHolder

protected ConfigurableAddressProvider.AddressHolder(java.net.InetSocketAddress address)
Construct an AddressHolder for the specified InetSocketAddress.

Parameters:
address - the InetSocketAddress
Method Detail

getAddress

public java.net.InetSocketAddress getAddress()
Obtain the underlying address.

Returns:
the underlying InetSocketAddress object

isPending

protected boolean isPending()
Check whether or not the underlying address has been accepted.

Returns:
true iff the underlying address has not yet been accepted

setPending

protected void setPending(boolean fPending)
Set or clear the "pending" flag.

Parameters:
fPending - the flag value

equals

public boolean equals(java.lang.Object o)
Return true iff this AddressHolder is equal to the specified Object. AddressHolders are considered equal if they represent the same address.

Parameters:
o - the object to compare to this AddressHolder for equality
Returns:
true iff this AddressHolders is equal to the specified object

hashCode

public int hashCode()
Return the hash code for this AddressHolder.

Returns:
the hash code for this AddressHolder

Oracle® Coherence Java API Reference
v3.5

E14977-01

Copyright © 2000, 2009, Oracle. All rights reserved.