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
QueueOptions.h
Go to the documentation of this file.
1
/*
2
*
3
* Licensed to the Apache Software Foundation (ASF) under one
4
* or more contributor license agreements. See the NOTICE file
5
* distributed with this work for additional information
6
* regarding copyright ownership. The ASF licenses this file
7
* to you under the Apache License, Version 2.0 (the
8
* "License"); you may not use this file except in compliance
9
* with the License. You may obtain a copy of the License at
10
*
11
* http://www.apache.org/licenses/LICENSE-2.0
12
*
13
* Unless required by applicable law or agreed to in writing,
14
* software distributed under the License is distributed on an
15
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16
* KIND, either express or implied. See the License for the
17
* specific language governing permissions and limitations
18
* under the License.
19
*
20
*/
21
22
#include "
qpid/client/ClientImportExport.h
"
23
#include "
qpid/framing/FieldTable.h
"
24
25
#ifndef _QueueOptions_
26
#define _QueueOptions_
27
28
namespace
qpid {
29
namespace
client
{
30
31
enum
QueueSizePolicy
{
NONE
,
REJECT
,
FLOW_TO_DISK
,
RING
,
RING_STRICT
};
32
enum
QueueOrderingPolicy
{
FIFO
,
LVQ
,
LVQ_NO_BROWSE
};
33
38
class
QPID_CLIENT_CLASS_EXTERN
QueueOptions
:
public
framing::FieldTable
39
{
40
public
:
41
QPID_CLIENT_EXTERN
QueueOptions
();
42
QPID_CLIENT_EXTERN
virtual
~QueueOptions();
43
56
QPID_CLIENT_EXTERN
void
setSizePolicy(
QueueSizePolicy
sp, uint64_t maxSize,
uint32_t
maxCount );
57
62
QPID_CLIENT_EXTERN
void
setPersistLastNode();
63
67
QPID_CLIENT_EXTERN
void
setOrdering(
QueueOrderingPolicy
op);
68
72
QPID_CLIENT_EXTERN
void
clearSizePolicy();
73
77
QPID_CLIENT_EXTERN
void
clearPersistLastNode();
78
82
QPID_CLIENT_EXTERN
void
getLVQKey(std::string& key);
83
87
QPID_CLIENT_EXTERN
void
clearOrdering();
88
109
QPID_CLIENT_EXTERN
void
enableQueueEvents(
bool
enqueueOnly);
110
111
static
QPID_CLIENT_EXTERN
const
std::string
strMaxCountKey
;
112
static
QPID_CLIENT_EXTERN
const
std::string
strMaxSizeKey
;
113
static
QPID_CLIENT_EXTERN
const
std::string
strTypeKey
;
114
static
QPID_CLIENT_EXTERN
const
std::string
strREJECT
;
115
static
QPID_CLIENT_EXTERN
const
std::string
strFLOW_TO_DISK
;
116
static
QPID_CLIENT_EXTERN
const
std::string
strRING
;
117
static
QPID_CLIENT_EXTERN
const
std::string
strRING_STRICT
;
118
static
QPID_CLIENT_EXTERN
const
std::string
strLastValueQueue
;
119
static
QPID_CLIENT_EXTERN
const
std::string
strPersistLastNode
;
120
static
QPID_CLIENT_EXTERN
const
std::string
strLVQMatchProperty
;
121
static
QPID_CLIENT_EXTERN
const
std::string
strLastValueQueueNoBrowse
;
122
static
QPID_CLIENT_EXTERN
const
std::string
strQueueEventMode
;
123
};
124
125
}
126
}
127
128
129
#endif
Qpid C++ API Reference
Generated on Tue Sep 25 2012 for Qpid C++ Client API by
1.8.1.1