activemq-cpp-3.4.0

activemq::commands::ConsumerId Class Reference

#include <src/main/activemq/commands/ConsumerId.h>

Inheritance diagram for activemq::commands::ConsumerId:

Public Types

typedef
decaf::lang::PointerComparator
< ConsumerId
COMPARATOR

Public Member Functions

 ConsumerId ()
 ConsumerId (const ConsumerId &other)
 ConsumerId (const SessionId &sessionId, long long consumerIdd)
virtual ~ConsumerId ()
virtual unsigned char getDataStructureType () const
 Get the DataStructure Type as defined in CommandTypes.h.
virtual ConsumerIdcloneDataStructure () const
 Clone this obbject and return a new instance that the caller now owns, this will be an exact copy of this one.
virtual void copyDataStructure (const DataStructure *src)
 Copy the contents of the passed object into this objects members, overwriting any existing data.
virtual std::string toString () const
 Returns a string containing the information for this DataStructure such as its type and value of its elements.
virtual bool equals (const DataStructure *value) const
 Compares the DataStructure passed in to this one, and returns if they are equivalent.
const Pointer< SessionId > & getParentId () const
virtual const std::string & getConnectionId () const
virtual std::string & getConnectionId ()
virtual void setConnectionId (const std::string &connectionId)
virtual long long getSessionId () const
virtual void setSessionId (long long sessionId)
virtual long long getValue () const
virtual void setValue (long long value)
virtual int compareTo (const ConsumerId &value) const
virtual bool equals (const ConsumerId &value) const
virtual bool operator== (const ConsumerId &value) const
virtual bool operator< (const ConsumerId &value) const
ConsumerIdoperator= (const ConsumerId &other)

Static Public Attributes

static const unsigned char ID_CONSUMERID = 122

Protected Attributes

std::string connectionId
long long sessionId
long long value

Member Typedef Documentation


Constructor & Destructor Documentation

activemq::commands::ConsumerId::ConsumerId ( )
activemq::commands::ConsumerId::ConsumerId ( const ConsumerId other)
activemq::commands::ConsumerId::ConsumerId ( const SessionId sessionId,
long long  consumerIdd 
)
virtual activemq::commands::ConsumerId::~ConsumerId ( ) [virtual]

Member Function Documentation

virtual ConsumerId* activemq::commands::ConsumerId::cloneDataStructure ( ) const [virtual]

Clone this obbject and return a new instance that the caller now owns, this will be an exact copy of this one.

Returns:
new copy of this object.

Implements activemq::commands::DataStructure.

virtual int activemq::commands::ConsumerId::compareTo ( const ConsumerId value) const [virtual]
virtual void activemq::commands::ConsumerId::copyDataStructure ( const DataStructure src) [virtual]

Copy the contents of the passed object into this objects members, overwriting any existing data.

Returns:
src - Source Object

Implements activemq::commands::DataStructure.

virtual bool activemq::commands::ConsumerId::equals ( const DataStructure value) const [virtual]

Compares the DataStructure passed in to this one, and returns if they are equivalent.

Equivalent here means that they are of the same type, and that each element of the objects are the same.

Returns:
true if DataStructure's are Equal.

Implements activemq::commands::DataStructure.

virtual bool activemq::commands::ConsumerId::equals ( const ConsumerId value) const [virtual]
virtual std::string& activemq::commands::ConsumerId::getConnectionId ( ) [virtual]
virtual const std::string& activemq::commands::ConsumerId::getConnectionId ( ) const [virtual]
virtual unsigned char activemq::commands::ConsumerId::getDataStructureType ( ) const [virtual]

Get the DataStructure Type as defined in CommandTypes.h.

Returns:
The type of the data structure

Implements activemq::commands::DataStructure.

const Pointer<SessionId>& activemq::commands::ConsumerId::getParentId ( ) const
virtual long long activemq::commands::ConsumerId::getSessionId ( ) const [virtual]
virtual long long activemq::commands::ConsumerId::getValue ( ) const [virtual]
virtual bool activemq::commands::ConsumerId::operator< ( const ConsumerId value) const [virtual]
ConsumerId& activemq::commands::ConsumerId::operator= ( const ConsumerId other)
virtual bool activemq::commands::ConsumerId::operator== ( const ConsumerId value) const [virtual]
virtual void activemq::commands::ConsumerId::setConnectionId ( const std::string &  connectionId) [virtual]
virtual void activemq::commands::ConsumerId::setSessionId ( long long  sessionId) [virtual]
virtual void activemq::commands::ConsumerId::setValue ( long long  value) [virtual]
virtual std::string activemq::commands::ConsumerId::toString ( ) const [virtual]

Returns a string containing the information for this DataStructure such as its type and value of its elements.

Returns:
formatted string useful for debugging.

Reimplemented from activemq::commands::BaseDataStructure.


Field Documentation


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