diff options
| author | Carl C. Trieloff <cctrieloff@apache.org> | 2007-10-19 18:57:30 +0000 |
|---|---|---|
| committer | Carl C. Trieloff <cctrieloff@apache.org> | 2007-10-19 18:57:30 +0000 |
| commit | b97be677001ec35469d080a98ba88276f2300651 (patch) | |
| tree | 2d947cee25396e96ad1a49f43d9de82e04f0f96a /cpp/src/qpid/broker/Queue.h | |
| parent | f25df3a53ca1ef5eec396512fd584823e7f6636d (diff) | |
| download | qpid-python-b97be677001ec35469d080a98ba88276f2300651.tar.gz | |
QPID-651 applied patch from Ted
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@586578 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/broker/Queue.h')
| -rw-r--r-- | cpp/src/qpid/broker/Queue.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cpp/src/qpid/broker/Queue.h b/cpp/src/qpid/broker/Queue.h index 082ccce246..24a9959d14 100644 --- a/cpp/src/qpid/broker/Queue.h +++ b/cpp/src/qpid/broker/Queue.h @@ -35,6 +35,7 @@ #include "PersistableQueue.h" #include "QueuePolicy.h" #include "QueueBindings.h" +#include "ManagementObjectQueue.h" namespace qpid { namespace broker { @@ -93,6 +94,7 @@ namespace qpid { qpid::sys::Serializer<DispatchFunctor> serializer; DispatchFunctor dispatchCallback; framing::SequenceNumber sequence; + ManagementObjectQueue::shared_ptr mgmtObjectPtr; void pop(); void push(Message::shared_ptr& msg); @@ -130,6 +132,8 @@ namespace qpid { void destroy(); void bound(const string& exchange, const string& key, const qpid::framing::FieldTable& args); void unbind(ExchangeRegistry& exchanges, Queue::shared_ptr shared_ref); + void setMgmt (ManagementObjectQueue::shared_ptr mgmt) { mgmtObjectPtr = mgmt; } + ManagementObjectQueue::shared_ptr getMgmt (void) { return mgmtObjectPtr; } bool acquire(const QueuedMessage& msg); @@ -158,7 +162,7 @@ namespace qpid { * Request dispatch any queued messages providing there are * consumers for them. Only one thread can be dispatching * at any time, so this call schedules the despatch based on - * the serilizer policy. + * the serilizer policy. */ void requestDispatch(Consumer::ptr c = Consumer::ptr()); void flush(DispatchCompletion& callback); |
