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

qpid::framing::StreamQosBody Class Reference

#include <StreamQosBody.h>

List of all members.

Public Types

typedef void ResultType

Public Member Functions

 StreamQosBody (ProtocolVersion, uint32_t _prefetchSize, uint16_t _prefetchCount, uint32_t _consumeRate, bool _global)
 StreamQosBody (ProtocolVersion=ProtocolVersion())
void setPrefetchSize (uint32_t _prefetchSize)
uint32_t getPrefetchSize () const
bool hasPrefetchSize () const
void clearPrefetchSizeFlag ()
void setPrefetchCount (uint16_t _prefetchCount)
uint16_t getPrefetchCount () const
bool hasPrefetchCount () const
void clearPrefetchCountFlag ()
void setConsumeRate (uint32_t _consumeRate)
uint32_t getConsumeRate () const
bool hasConsumeRate () const
void clearConsumeRateFlag ()
void setGlobal (bool _global)
bool getGlobal () const
template<class T >
ResultType invoke (T &invocable) const
void accept (MethodBodyConstVisitor &v) const
boost::intrusive_ptr< AMQBodyclone () const
ClassId amqpClassId () const
MethodId amqpMethodId () const
bool isContentBearing () const
bool resultExpected () const
bool responseExpected () const
void encode (Buffer &) const
void decode (Buffer &, uint32_t=0)
void encodeStructBody (Buffer &) const
void decodeStructBody (Buffer &, uint32_t=0)
uint32_t encodedSize () const
uint32_t bodySize () const
void print (std::ostream &out) const
virtual void encodeHeader (Buffer &buffer) const
virtual void decodeHeader (Buffer &buffer, uint32_t size=0)
virtual uint32_t headerSize () const
virtual bool isSync () const
virtual void setSync (bool on) const
HeadergetHeader ()
const HeadergetHeader () const
void accept (AMQBodyConstVisitor &v) const
template<class T >
bool isA () const
virtual uint8_t type () const
AMQMethodBodygetMethod ()
const AMQMethodBodygetMethod () const

Static Public Member Functions

static bool match (const AMQBody &, const AMQBody &)
 Match if same type and same class/method ID for methods.

Static Public Attributes

static const ClassId CLASS_ID = 0xa
static const MethodId METHOD_ID = 0x1


Detailed Description

Definition at line 41 of file StreamQosBody.h.


Member Typedef Documentation

Definition at line 79 of file StreamQosBody.h.


Constructor & Destructor Documentation

qpid::framing::StreamQosBody::StreamQosBody ( ProtocolVersion  ,
uint32_t  _prefetchSize,
uint16_t  _prefetchCount,
uint32_t  _consumeRate,
bool  _global 
) [inline]

Definition at line 49 of file StreamQosBody.h.

References setGlobal().

qpid::framing::StreamQosBody::StreamQosBody ( ProtocolVersion  = ProtocolVersion()  )  [inline]

Definition at line 63 of file StreamQosBody.h.


Member Function Documentation

void qpid::framing::AMQMethodBody::accept ( AMQBodyConstVisitor v  )  const [inline, virtual, inherited]

Implements qpid::framing::AMQBody.

Definition at line 65 of file AMQMethodBody.h.

References qpid::framing::AMQBodyConstVisitor::visit().

void qpid::framing::StreamQosBody::accept ( MethodBodyConstVisitor v  )  const [inline, virtual]

ClassId qpid::framing::StreamQosBody::amqpClassId (  )  const [inline, virtual]

Implements qpid::framing::AMQMethodBody.

Definition at line 89 of file StreamQosBody.h.

References CLASS_ID.

MethodId qpid::framing::StreamQosBody::amqpMethodId (  )  const [inline, virtual]

Implements qpid::framing::AMQMethodBody.

Definition at line 90 of file StreamQosBody.h.

References METHOD_ID.

uint32_t qpid::framing::StreamQosBody::bodySize (  )  const

void qpid::framing::StreamQosBody::clearConsumeRateFlag (  ) 

void qpid::framing::StreamQosBody::clearPrefetchCountFlag (  ) 

void qpid::framing::StreamQosBody::clearPrefetchSizeFlag (  ) 

boost::intrusive_ptr<AMQBody> qpid::framing::StreamQosBody::clone (  )  const [inline, virtual]

Implements qpid::framing::AMQBody.

Definition at line 87 of file StreamQosBody.h.

References qpid::framing::BodyFactory::copy().

void qpid::framing::StreamQosBody::decode ( Buffer ,
uint32_t  = 0 
) [virtual]

virtual void qpid::framing::ModelMethod::decodeHeader ( Buffer buffer,
uint32_t  size = 0 
) [inline, virtual, inherited]

Definition at line 37 of file ModelMethod.h.

References qpid::framing::Header::decode().

void qpid::framing::StreamQosBody::decodeStructBody ( Buffer ,
uint32_t  = 0 
)

void qpid::framing::StreamQosBody::encode ( Buffer  )  const [virtual]

uint32_t qpid::framing::StreamQosBody::encodedSize (  )  const [virtual]

virtual void qpid::framing::ModelMethod::encodeHeader ( Buffer buffer  )  const [inline, virtual, inherited]

Definition at line 36 of file ModelMethod.h.

References qpid::framing::Header::encode().

void qpid::framing::StreamQosBody::encodeStructBody ( Buffer  )  const

uint32_t qpid::framing::StreamQosBody::getConsumeRate (  )  const

Referenced by invoke().

bool qpid::framing::StreamQosBody::getGlobal (  )  const

Referenced by invoke().

const Header& qpid::framing::ModelMethod::getHeader (  )  const [inline, inherited]

Definition at line 42 of file ModelMethod.h.

Header& qpid::framing::ModelMethod::getHeader (  )  [inline, inherited]

Definition at line 41 of file ModelMethod.h.

const AMQMethodBody* qpid::framing::AMQMethodBody::getMethod (  )  const [inline, virtual, inherited]

Reimplemented from qpid::framing::AMQBody.

Definition at line 64 of file AMQMethodBody.h.

AMQMethodBody* qpid::framing::AMQMethodBody::getMethod (  )  [inline, virtual, inherited]

Reimplemented from qpid::framing::AMQBody.

Definition at line 63 of file AMQMethodBody.h.

uint16_t qpid::framing::StreamQosBody::getPrefetchCount (  )  const

Referenced by invoke().

uint32_t qpid::framing::StreamQosBody::getPrefetchSize (  )  const

Referenced by invoke().

bool qpid::framing::StreamQosBody::hasConsumeRate (  )  const

bool qpid::framing::StreamQosBody::hasPrefetchCount (  )  const

bool qpid::framing::StreamQosBody::hasPrefetchSize (  )  const

virtual uint32_t qpid::framing::ModelMethod::headerSize (  )  const [inline, virtual, inherited]

Definition at line 38 of file ModelMethod.h.

References qpid::framing::Header::encodedSize().

template<class T >
ResultType qpid::framing::StreamQosBody::invoke ( T &  invocable  )  const [inline]

Definition at line 81 of file StreamQosBody.h.

References getConsumeRate(), getGlobal(), getPrefetchCount(), and getPrefetchSize().

template<class T >
bool qpid::framing::AMQMethodBody::isA (  )  const [inline, inherited]

bool qpid::framing::StreamQosBody::isContentBearing (  )  const [inline, virtual]

Implements qpid::framing::AMQMethodBody.

Definition at line 91 of file StreamQosBody.h.

virtual bool qpid::framing::ModelMethod::isSync (  )  const [inline, virtual, inherited]

Reimplemented from qpid::framing::AMQMethodBody.

Definition at line 39 of file ModelMethod.h.

References qpid::framing::Header::getSync().

static bool qpid::framing::AMQBody::match ( const AMQBody ,
const AMQBody  
) [static, inherited]

Match if same type and same class/method ID for methods.

void qpid::framing::StreamQosBody::print ( std::ostream &  out  )  const [virtual]

bool qpid::framing::StreamQosBody::responseExpected (  )  const [inline, virtual]

Implements qpid::framing::AMQMethodBody.

Definition at line 93 of file StreamQosBody.h.

bool qpid::framing::StreamQosBody::resultExpected (  )  const [inline, virtual]

Implements qpid::framing::AMQMethodBody.

Definition at line 92 of file StreamQosBody.h.

void qpid::framing::StreamQosBody::setConsumeRate ( uint32_t  _consumeRate  ) 

void qpid::framing::StreamQosBody::setGlobal ( bool  _global  ) 

Referenced by StreamQosBody().

void qpid::framing::StreamQosBody::setPrefetchCount ( uint16_t  _prefetchCount  ) 

void qpid::framing::StreamQosBody::setPrefetchSize ( uint32_t  _prefetchSize  ) 

virtual void qpid::framing::ModelMethod::setSync ( bool  on  )  const [inline, virtual, inherited]

Reimplemented from qpid::framing::AMQMethodBody.

Definition at line 40 of file ModelMethod.h.

References qpid::framing::Header::setSync().

virtual uint8_t qpid::framing::AMQMethodBody::type (  )  const [inline, virtual, inherited]


Member Data Documentation

Definition at line 47 of file StreamQosBody.h.

Referenced by amqpClassId().

Definition at line 48 of file StreamQosBody.h.

Referenced by amqpMethodId().


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

Qpid C++ API Reference
Generated on Mon Mar 16 13:47:34 2009 for Qpid C++ Client API by doxygen 1.5.8