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::framing::message::DELIVERY_MODE_PERSISTENT
Definition:
enum.h:108
qpid::client::FlowControl::unlimited
static FlowControl unlimited()
Definition:
FlowControl.h:58
qpid::framing::message::ACCEPT_MODE_EXPLICIT
Definition:
enum.h:94
qpid::client::SubscriptionSettings::SubscriptionSettings
SubscriptionSettings(FlowControl flow=FlowControl::unlimited(), AcceptMode accept=ACCEPT_MODE_EXPLICIT, AcquireMode acquire=ACQUIRE_MODE_PRE_ACQUIRED, unsigned int autoAck_=1, CompletionMode completion=COMPLETE_ON_DELIVERY)
Definition:
SubscriptionSettings.h:55
qpid::client::SubscriptionSettings::acquireMode
AcquireMode acquireMode
< ACCEPT_MODE_EXPLICIT or ACCEPT_MODE_NONE
Definition:
SubscriptionSettings.h:93
qpid::client::SubscriptionSettings::completionMode
CompletionMode completionMode
In windowing mode, completion of a message will cause the credit used up by that message to be reallo...
Definition:
SubscriptionSettings.h:125
qpid::framing::message::ACCEPT_MODE_NONE
Definition:
enum.h:95
enum.h
qpid::framing::message::CREDIT_UNIT_BYTE
Definition:
enum.h:128
qpid::client::SubscriptionSettings
Settings for a subscription.
Definition:
SubscriptionSettings.h:53
qpid::framing::message::FLOW_MODE_WINDOW
Definition:
enum.h:124
qpid::client::CompletionMode
CompletionMode
Definition:
SubscriptionSettings.h:45
qpid::framing::message::AcceptMode
AcceptMode
Definition:
enum.h:93
qpid::client::SubscriptionSettings::flowControl
FlowControl flowControl
Definition:
SubscriptionSettings.h:63
qpid::framing::message::ACQUIRE_MODE_NOT_ACQUIRED
Definition:
enum.h:99
qpid::client::FlowControl
Flow control works by associating a finite amount of "credit" with a subscription.
Definition:
FlowControl.h:49
qpid::framing::message::AcquireMode
AcquireMode
Definition:
enum.h:97
qpid::client::SubscriptionSettings::autoAck
unsigned int autoAck
< ACQUIRE_MODE_PRE_ACQUIRED or ACQUIRE_MODE_NOT_ACQUIRED
Definition:
SubscriptionSettings.h:102
qpid::client::MANUAL_COMPLETION
Definition:
SubscriptionSettings.h:46
qpid::client::SubscriptionSettings::acceptMode
AcceptMode acceptMode
< Flow control settings.
Definition:
SubscriptionSettings.h:75
qpid::client::SubscriptionSettings::exclusive
bool exclusive
If set, requests that no other subscriber be allowed to access the queue while this subscription is a...
Definition:
SubscriptionSettings.h:130
qpid::client::COMPLETE_ON_ACCEPT
Definition:
SubscriptionSettings.h:48
qpid::framing::message::ACQUIRE_MODE_PRE_ACQUIRED
Definition:
enum.h:98
qpid::client::COMPLETE_ON_DELIVERY
Definition:
SubscriptionSettings.h:47
qpid::framing::message::FLOW_MODE_CREDIT
Definition:
enum.h:123
qpid::framing::message::CREDIT_UNIT_MESSAGE
Definition:
enum.h:127
FlowControl.h
qpid::log::client
Definition:
Statement.h:78
qpid::framing::message::DELIVERY_MODE_NON_PERSISTENT
Definition:
enum.h:107
Qpid C++ API Reference
Generated on Fri Nov 1 2013 for Qpid C++ Client API by
1.8.5