Apache Qpid - AMQP Messaging for Java JMS, C++, Python, Ruby, and .NET Apache Qpid Documentation
Public Member Functions | Protected Types | Protected Attributes | List of all members
qmf::Subscription Class Reference

#include <qmf/Subscription.h>

Public Member Functions

 Subscription (SubscriptionImpl *impl=0)
 
 Subscription (const Subscription &)
 
Subscriptionoperator= (const Subscription &)
 
 ~Subscription ()
 
void cancel ()
 Construction: A subscription is created by calling ConsoleSession::subscribe. More...
 
bool isActive () const
 Check to see if this subscription is active. More...
 
void lock ()
 lock and unlock should be used to bracket a traversal of the data set. More...
 
void unlock ()
 
uint32_t getDataCount () const
 
Data getData (uint32_t) const
 
QMF_INLINE_EXTERN bool isValid () const
 
QMF_INLINE_EXTERN bool isNull () const
 
QMF_INLINE_EXTERN operator bool () const
 Conversion to bool supports idiom if (handle) { handle->... More...
 
QMF_INLINE_EXTERN bool operator! () const
 Operator ! supports idiom if (!handle) { do_if_handle_is_null(); }. More...
 
void swap (Handle< SubscriptionImpl > &h)
 

Protected Types

typedef SubscriptionImpl Impl
 

Protected Attributes

Implimpl
 

Detailed Description

Definition at line 43 of file Subscription.h.

Member Typedef Documentation

typedef SubscriptionImpl qmf::Handle< SubscriptionImpl >::Impl
protectedinherited

Definition at line 61 of file Handle.h.

Constructor & Destructor Documentation

qmf::Subscription::Subscription ( SubscriptionImpl *  impl = 0)
qmf::Subscription::Subscription ( const Subscription )
qmf::Subscription::~Subscription ( )

Member Function Documentation

void qmf::Subscription::cancel ( )

Construction: A subscription is created by calling ConsoleSession::subscribe.

Cancel subscriptions to all subscribed agents. After this is called, the subscription shall be inactive.

Data qmf::Subscription::getData ( uint32_t  ) const
uint32_t qmf::Subscription::getDataCount ( ) const
bool qmf::Subscription::isActive ( ) const

Check to see if this subscription is active.

It is active if it has a live subscription on at least one agent. If it is not active, there is nothing that can be done to make it active, it can only be deleted.

QMF_INLINE_EXTERN bool qmf::Handle< SubscriptionImpl >::isNull ( ) const
inlineinherited
Returns
true if handle is null. It is an error to call any function on a null handle.

Definition at line 50 of file Handle.h.

QMF_INLINE_EXTERN bool qmf::Handle< SubscriptionImpl >::isValid ( ) const
inlineinherited
Returns
true if handle is valid, i.e. not null.

Definition at line 47 of file Handle.h.

void qmf::Subscription::lock ( )

lock and unlock should be used to bracket a traversal of the data set.

After lock is called, the subscription will not change its set of available data objects. Between calls to getDataCount and getData, no data objects will be added or removed. After unlock is called, the set of data will catch up to any activity that occurred while the lock was in effect.

QMF_INLINE_EXTERN qmf::Handle< SubscriptionImpl >::operator bool ( ) const
inlineinherited

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

}

Definition at line 53 of file Handle.h.

QMF_INLINE_EXTERN bool qmf::Handle< SubscriptionImpl >::operator! ( ) const
inlineinherited

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

Definition at line 56 of file Handle.h.

Subscription& qmf::Subscription::operator= ( const Subscription )
void qmf::Handle< SubscriptionImpl >::swap ( Handle< SubscriptionImpl > &  h)
inlineinherited

Definition at line 58 of file Handle.h.

void qmf::Subscription::unlock ( )

Member Data Documentation

Impl* qmf::Handle< SubscriptionImpl >::impl
protectedinherited

Definition at line 68 of file Handle.h.


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

Qpid C++ API Reference
Generated on Tue Oct 28 2014 for Qpid C++ Client API by doxygen 1.8.5