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
SubscriptionSettings.h
Go to the documentation of this file.
1
#ifndef QPID_CLIENT_SUBSCRIPTIONSETTINGS_H
2
#define QPID_CLIENT_SUBSCRIPTIONSETTINGS_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
#include "
qpid/client/FlowControl.h
"
25
#include "
qpid/framing/enum.h
"
26
27
namespace
qpid {
28
namespace
client
{
29
31
using
qpid::framing::message::AcceptMode
;
32
using
qpid::framing::message::AcquireMode
;
33
using
qpid::framing::message::ACCEPT_MODE_EXPLICIT
;
34
using
qpid::framing::message::ACCEPT_MODE_NONE
;
35
using
qpid::framing::message::ACQUIRE_MODE_NOT_ACQUIRED
;
36
using
qpid::framing::message::ACQUIRE_MODE_PRE_ACQUIRED
;
37
using
qpid::framing::message::CREDIT_UNIT_BYTE
;
38
using
qpid::framing::message::CREDIT_UNIT_MESSAGE
;
39
using
qpid::framing::message::DELIVERY_MODE_NON_PERSISTENT
;
40
using
qpid::framing::message::DELIVERY_MODE_PERSISTENT
;
41
using
qpid::framing::message::FLOW_MODE_CREDIT
;
42
using
qpid::framing::message::FLOW_MODE_WINDOW
;
43
44
45
enum
CompletionMode
{
46
MANUAL_COMPLETION
= 0,
47
COMPLETE_ON_DELIVERY
= 1,
48
COMPLETE_ON_ACCEPT
= 2
49
};
53
struct
SubscriptionSettings
54
{
55
SubscriptionSettings
(
56
FlowControl
flow=
FlowControl::unlimited
(),
57
AcceptMode
accept=
ACCEPT_MODE_EXPLICIT
,
58
AcquireMode
acquire=
ACQUIRE_MODE_PRE_ACQUIRED
,
59
unsigned
int
autoAck_=1,
60
CompletionMode
completion=
COMPLETE_ON_DELIVERY
61
) :
flowControl
(flow),
acceptMode
(accept),
acquireMode
(acquire),
autoAck
(autoAck_),
completionMode
(completion),
exclusive
(false) {}
62
63
FlowControl
flowControl
;
64
75
AcceptMode
acceptMode
;
76
93
AcquireMode
acquireMode
;
94
102
unsigned
int
autoAck
;
125
CompletionMode
completionMode
;
130
bool
exclusive
;
131
};
132
133
}}
// namespace qpid::client
134
135
#endif
Qpid C++ API Reference
Generated on Thu Nov 15 2012 for Qpid C++ Client API by
1.8.1.2