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
messaging
Sender.h
Go to the documentation of this file.
1
#ifndef QPID_MESSAGING_SENDER_H
2
#define QPID_MESSAGING_SENDER_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/messaging/ImportExport.h
"
25
26
#include "
qpid/messaging/Handle.h
"
27
#include "
qpid/sys/IntegerTypes.h
"
28
29
#include <string>
30
31
namespace
qpid {
32
namespace
messaging
{
33
34
#ifndef SWIG
35
template
<
class
>
class
PrivateImplRef;
36
#endif
37
class
Message;
38
class
SenderImpl;
39
class
Session
;
43
class
QPID_MESSAGING_CLASS_EXTERN
Sender
:
public
qpid::messaging::Handle
<SenderImpl>
44
{
45
public
:
46
QPID_MESSAGING_EXTERN
Sender
(SenderImpl* impl = 0);
47
QPID_MESSAGING_EXTERN
Sender(
const
Sender&);
48
QPID_MESSAGING_EXTERN
~Sender();
49
QPID_MESSAGING_EXTERN
Sender& operator=(
const
Sender&);
50
59
QPID_MESSAGING_EXTERN
void
send(
const
Message
& message,
bool
sync
=
false
);
60
QPID_MESSAGING_EXTERN
void
close();
61
67
QPID_MESSAGING_EXTERN
void
setCapacity(
uint32_t
);
72
QPID_MESSAGING_EXTERN
uint32_t
getCapacity();
77
QPID_MESSAGING_EXTERN
uint32_t
getUnsettled();
82
QPID_MESSAGING_EXTERN
uint32_t
getAvailable();
86
QPID_MESSAGING_EXTERN
const
std::string& getName()
const
;
87
91
QPID_MESSAGING_EXTERN
Session
getSession()
const
;
92
#ifndef SWIG
93
private
:
94
friend
class
qpid::messaging::PrivateImplRef<Sender>;
95
#endif
96
};
97
}}
// namespace qpid::messaging
98
99
#endif
Qpid C++ API Reference
Generated on Mon Feb 11 2013 for Qpid C++ Client API by
1.8.1.1