ConfigurableAddressProvider::AddressHolder Class Reference

#include <coherence/net/ConfigurableAddressProvider.hpp>

Inherits Object.

List of all members.


Detailed Description

A stateful holder for an InetSocketAddress object.

Public Types

typedef spec::Handle Handle
 AddressHolder Handle definition.
typedef spec::View View
 AddressHolder View definition.
typedef spec::Holder Holder
 AddressHolder Holder definition.

Public Member Functions

InetSocketAddress::View getAddress () const
 Obtain the underlying address.

Protected Member Functions

 AddressHolder (InetSocketAddress::View vAddress)
 Construct an AddressHolder for the specified InetSocketAddress.
 AddressHolder ()
 Create a new AddressHolder instance.
bool isPending () const
 Check whether or not the underlying address has been accepted.
void setPending (bool f)
 Set or clear the "pending" flag.

Constructor & Destructor Documentation

AddressHolder ( InetSocketAddress::View  vAddress  )  [protected]

Construct an AddressHolder for the specified InetSocketAddress.

Parameters:
vAddress the InetSocketAddress


Member Function Documentation

InetSocketAddress::View getAddress (  )  const

Obtain the underlying address.

Returns:
the underlying InetSocketAddress object

bool isPending (  )  const [protected]

Check whether or not the underlying address has been accepted.

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

void setPending ( bool  f  )  [protected]

Set or clear the "pending" flag.

Parameters:
f the flag value


The documentation for this class was generated from the following file: Copyright (c) 2000-2008 Oracle. All rights reserved.