00001 #ifndef QPID_CLIENT_LOCALQUEUEIMPL_H
00002 #define QPID_CLIENT_LOCALQUEUEIMPL_H
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #include "ClientImportExport.h"
00026 #include "Handle.h"
00027 #include "qpid/client/Message.h"
00028 #include "qpid/client/Subscription.h"
00029 #include "qpid/client/Demux.h"
00030 #include "qpid/sys/Time.h"
00031 #include "qpid/RefCounted.h"
00032
00033 namespace qpid {
00034 namespace client {
00035
00074 class LocalQueueImpl : public RefCounted {
00075 public:
00081 bool get(Message& result, sys::Duration timeout=0);
00082
00089 Message get(sys::Duration timeout=sys::TIME_INFINITE);
00090
00092 Message pop(sys::Duration timeout=sys::TIME_INFINITE);
00093
00095 bool empty() const;
00096
00098 size_t size() const;
00099
00100 private:
00101 Demux::QueuePtr queue;
00102 Subscription subscription;
00103 friend class SubscriptionManagerImpl;
00104 };
00105
00106 }}
00107
00108 #endif