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
Connection.h
Go to the documentation of this file.
1
#ifndef QPID_MESSAGING_CONNECTION_H
2
#define QPID_MESSAGING_CONNECTION_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/messaging/exceptions.h
"
28
#include "
qpid/types/Variant.h
"
29
30
#include <string>
31
32
namespace
qpid {
33
namespace
messaging
{
34
35
#ifndef SWIG
36
template
<
class
>
class
PrivateImplRef
;
37
#endif
38
class
ConnectionImpl;
39
class
Session
;
40
45
class
QPID_MESSAGING_CLASS_EXTERN
Connection
:
public
qpid::messaging::Handle
<ConnectionImpl>
46
{
47
public
:
48
QPID_MESSAGING_EXTERN
Connection
(ConnectionImpl* impl);
49
QPID_MESSAGING_EXTERN
Connection(
const
Connection&);
50
QPID_MESSAGING_EXTERN
Connection();
87
QPID_MESSAGING_EXTERN
Connection(
const
std::string& url,
const
qpid::types::Variant::Map
& options =
qpid::types::Variant::Map
());
94
QPID_MESSAGING_EXTERN
Connection(
const
std::string& url,
const
std::string& options);
95
QPID_MESSAGING_EXTERN
~Connection();
96
QPID_MESSAGING_EXTERN
Connection& operator=(
const
Connection&);
97
QPID_MESSAGING_EXTERN
void
setOption(
const
std::string& name,
const
qpid::types::Variant
& value);
98
QPID_MESSAGING_EXTERN
void
open();
99
QPID_MESSAGING_EXTERN
bool
isOpen();
100
QPID_MESSAGING_EXTERN
bool
isOpen()
const
;
106
QPID_MESSAGING_EXTERN
void
close();
107
QPID_MESSAGING_EXTERN
Session
createTransactionalSession(
const
std::string& name = std::string());
108
QPID_MESSAGING_EXTERN
Session
createSession(
const
std::string& name = std::string());
109
110
QPID_MESSAGING_EXTERN
Session
getSession(
const
std::string& name)
const
;
111
QPID_MESSAGING_EXTERN
std::string getAuthenticatedUsername();
112
113
#ifndef SWIG
114
private
:
115
friend
class
qpid::messaging::PrivateImplRef
<Connection>;
116
#endif
117
};
118
119
}}
// namespace qpid::messaging
120
121
#endif
Qpid C++ API Reference
Generated on Fri Aug 29 2014 for Qpid C++ Client API by
1.8.3.1