Apache Qpid - AMQP Messaging for Java JMS, C++, Python, Ruby, and .NET
Apache Qpid Documentation
Main Page
Modules
Namespaces
Classes
Files
File List
File Members
qpid
client
LocalQueue.h
Go to the documentation of this file.
1
#ifndef QPID_CLIENT_LOCALQUEUE_H
2
#define QPID_CLIENT_LOCALQUEUE_H
3
4
/*
5
*
6
* Licensed to the Apache Software Foundation (ASF) under one
7
* or more contributor license agreements. See the NOTICE file
8
* distributed with this work for additional information
9
* regarding copyright ownership. The ASF licenses this file
10
* to you under the Apache License, Version 2.0 (the
11
* "License"); you may not use this file except in compliance
12
* with the License. You may obtain a copy of the License at
13
*
14
* http://www.apache.org/licenses/LICENSE-2.0
15
*
16
* Unless required by applicable law or agreed to in writing,
17
* software distributed under the License is distributed on an
18
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
19
* KIND, either express or implied. See the License for the
20
* specific language governing permissions and limitations
21
* under the License.
22
*
23
*/
24
25
#include "
qpid/client/ClientImportExport.h
"
26
#include "
qpid/client/Handle.h
"
27
#include "
qpid/client/Message.h
"
28
#include "
qpid/sys/Time.h
"
29
30
namespace
qpid {
31
namespace
client
{
32
33
class
LocalQueueImpl;
34
template
<
class
T>
class
PrivateImplRef;
35
74
class
QPID_CLIENT_CLASS_EXTERN
LocalQueue
:
public
Handle
<LocalQueueImpl> {
75
public
:
81
QPID_CLIENT_EXTERN
LocalQueue
();
82
QPID_CLIENT_EXTERN
LocalQueue(
const
LocalQueue&);
83
QPID_CLIENT_EXTERN
~LocalQueue();
84
QPID_CLIENT_EXTERN
LocalQueue& operator=(
const
LocalQueue&);
85
91
QPID_CLIENT_EXTERN
bool
get
(
Message
& result,
sys::Duration
timeout=0);
92
99
QPID_CLIENT_EXTERN
Message
get
(
sys::Duration
timeout=
sys::TIME_INFINITE
);
100
102
QPID_CLIENT_EXTERN
Message
pop(
sys::Duration
timeout=
sys::TIME_INFINITE
);
103
105
QPID_CLIENT_EXTERN
bool
empty()
const
;
106
108
QPID_CLIENT_EXTERN
size_t
size()
const
;
109
110
LocalQueue(LocalQueueImpl*);
111
112
113
private
:
114
typedef
LocalQueueImpl Impl;
115
friend
class
PrivateImplRef
<LocalQueue>;
116
};
117
118
}}
// namespace qpid::client
119
120
#endif
Qpid C++ API Reference
Generated on Thu Dec 5 2013 for Qpid C++ Client API by
1.8.3.1