activemq-cpp-3.4.0

activemq::commands::ProducerId Class Reference

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

Inheritance diagram for activemq::commands::ProducerId:

Public Types

typedef
decaf::lang::PointerComparator
< ProducerId
COMPARATOR

Public Member Functions

 ProducerId ()
 ProducerId (const ProducerId &other)
 ProducerId (const SessionId &sessionId, long long consumerId)
 ProducerId (std::string producerId)
virtual ~ProducerId ()
virtual unsigned char getDataStructureType () const
 Get the DataStructure Type as defined in CommandTypes.h.
virtual ProducerIdcloneDataStructure () 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
void setProducerSessionKey (std::string sessionKey)
virtual const std::string & getConnectionId () const
virtual std::string & getConnectionId ()
virtual void setConnectionId (const std::string &connectionId)
virtual long long getValue () const
virtual void setValue (long long value)
virtual long long getSessionId () const
virtual void setSessionId (long long sessionId)
virtual int compareTo (const ProducerId &value) const
virtual bool equals (const ProducerId &value) const
virtual bool operator== (const ProducerId &value) const
virtual bool operator< (const ProducerId &value) const
ProducerIdoperator= (const ProducerId &other)

Static Public Attributes

static const unsigned char ID_PRODUCERID = 123

Protected Attributes

std::string connectionId
long long value
long long sessionId

Member Typedef Documentation


Constructor & Destructor Documentation

activemq::commands::ProducerId::ProducerId ( )
activemq::commands::ProducerId::ProducerId ( const ProducerId other)
activemq::commands::ProducerId::ProducerId ( const SessionId sessionId,
long long  consumerId 
)
activemq::commands::ProducerId::ProducerId ( std::string  producerId)
virtual activemq::commands::ProducerId::~ProducerId ( ) [virtual]

Member Function Documentation

virtual ProducerId* activemq::commands::ProducerId::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::ProducerId::compareTo ( const ProducerId value) const [virtual]
virtual void activemq::commands::ProducerId::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::ProducerId::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::ProducerId::equals ( const ProducerId value) const [virtual]
virtual const std::string& activemq::commands::ProducerId::getConnectionId ( ) const [virtual]
virtual std::string& activemq::commands::ProducerId::getConnectionId ( ) [virtual]
virtual unsigned char activemq::commands::ProducerId::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::ProducerId::getParentId ( ) const
virtual long long activemq::commands::ProducerId::getSessionId ( ) const [virtual]
virtual long long activemq::commands::ProducerId::getValue ( ) const [virtual]
virtual bool activemq::commands::ProducerId::operator< ( const ProducerId value) const [virtual]
ProducerId& activemq::commands::ProducerId::operator= ( const ProducerId other)
virtual bool activemq::commands::ProducerId::operator== ( const ProducerId value) const [virtual]
virtual void activemq::commands::ProducerId::setConnectionId ( const std::string &  connectionId) [virtual]
void activemq::commands::ProducerId::setProducerSessionKey ( std::string  sessionKey)
virtual void activemq::commands::ProducerId::setSessionId ( long long  sessionId) [virtual]
virtual void activemq::commands::ProducerId::setValue ( long long  value) [virtual]
virtual std::string activemq::commands::ProducerId::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: