Apache Qpid C++ API
Apache Qpid - AMQP Messaging for Java JMS, C++, Python, Ruby, and .NET Apache Qpid Documentation

qpid::messaging::Connection Class Reference

#include <qpid/messaging/Connection.h>

List of all members.

Public Member Functions

 Connection (ConnectionImpl *impl=0)
 Connection (const Connection &)
 ~Connection ()
Connectionoperator= (const Connection &)
void close ()
Session newSession (bool transactional, const std::string &name=std::string())
Session newSession (const std::string &name=std::string())
Session newSession (const char *name)
Session getSession (const std::string &name) const
bool isValid () const
bool isNull () const
 operator bool () const
 Conversion to bool supports idiom if (handle) { handle->.
bool operator! () const
 Operator ! supports idiom if (!handle) { do_if_handle_is_null(); }.
void swap (Handle< ConnectionImpl > &h)

Static Public Member Functions

static Connection open (const std::string &url, const Variant::Map &options=Variant::Map())
 Current implementation supports the following options:.

Protected Types

typedef ConnectionImpl Impl

Protected Attributes

Implimpl

Detailed Description

Definition at line 41 of file Connection.h.


Member Typedef Documentation

typedef ConnectionImpl qpid::client::Handle< ConnectionImpl >::Impl [protected, inherited]

Definition at line 57 of file Handle.h.


Constructor & Destructor Documentation

qpid::messaging::Connection::Connection ( ConnectionImpl *  impl = 0  ) 
qpid::messaging::Connection::Connection ( const Connection  ) 
qpid::messaging::Connection::~Connection (  ) 

Member Function Documentation

void qpid::messaging::Connection::close (  ) 
Session qpid::messaging::Connection::getSession ( const std::string &  name  )  const
bool qpid::client::Handle< ConnectionImpl >::isNull (  )  const [inline, inherited]
Returns:
true if handle is null. It is an error to call any function on a null handle.

Definition at line 46 of file Handle.h.

bool qpid::client::Handle< ConnectionImpl >::isValid (  )  const [inline, inherited]
Returns:
true if handle is valid, i.e. not null.

Definition at line 43 of file Handle.h.

Session qpid::messaging::Connection::newSession ( const char *  name  ) 
Session qpid::messaging::Connection::newSession ( const std::string &  name = std::string()  ) 
Session qpid::messaging::Connection::newSession ( bool  transactional,
const std::string &  name = std::string() 
)
static Connection qpid::messaging::Connection::open ( const std::string &  url,
const Variant::Map options = Variant::Map() 
) [static]

Current implementation supports the following options:.

username password heartbeat tcp-nodelay sasl-mechanism sasl-min-ssf sasl-max-ssf

(note also bounds, locale, max-channels and max-framesize, but not sure whether those should be docuemented here)

Retry behaviour can be controlled through the following options:

reconnection-timeout - determines how long it will try to reconnect for -1 means forever, 0 means don't try to reconnect min-retry-interval max-retry-interval

The retry-interval is the time that the client waits for after a failed attempt to reconnect before retrying. It starts at the value of the min-retry-interval and is doubled every failure until the value of max-retry-interval is reached.

qpid::client::Handle< ConnectionImpl >::operator bool (  )  const [inline, inherited]

Conversion to bool supports idiom if (handle) { handle->.

.. }

Definition at line 49 of file Handle.h.

bool qpid::client::Handle< ConnectionImpl >::operator! (  )  const [inline, inherited]

Operator ! supports idiom if (!handle) { do_if_handle_is_null(); }.

Definition at line 52 of file Handle.h.

Connection& qpid::messaging::Connection::operator= ( const Connection  ) 
void qpid::client::Handle< ConnectionImpl >::swap ( Handle< ConnectionImpl > &  h  )  [inline, inherited]

Definition at line 54 of file Handle.h.


Member Data Documentation

Impl* qpid::client::Handle< ConnectionImpl >::impl [protected, inherited]

Definition at line 64 of file Handle.h.


The documentation for this class was generated from the following file:

Qpid C++ API Reference
Generated on Tue May 4 14:28:25 2010 for Qpid C++ Client API by doxygen 1.6.2-20100208