1 #ifndef QPID_MESSAGING_CONNECTION_H 2 #define QPID_MESSAGING_CONNECTION_H 24 #include "qpid/messaging/ImportExport.h" 26 #include "qpid/messaging/Handle.h" 27 #include "qpid/messaging/exceptions.h" 28 #include "qpid/types/Variant.h" 48 QPID_MESSAGING_EXTERN
Connection(ConnectionImpl* impl);
49 QPID_MESSAGING_EXTERN Connection(
const Connection&);
50 QPID_MESSAGING_EXTERN Connection();
122 QPID_MESSAGING_EXTERN Connection(
const std::string& url,
const qpid::types::Variant::Map& options = qpid::types::Variant::Map());
129 QPID_MESSAGING_EXTERN Connection(
const std::string& url,
const std::string& options);
130 QPID_MESSAGING_EXTERN ~Connection();
131 QPID_MESSAGING_EXTERN Connection& operator=(
const Connection&);
132 QPID_MESSAGING_EXTERN
void setOption(
const std::string& name,
const qpid::types::Variant& value);
133 QPID_MESSAGING_EXTERN
void open();
134 QPID_MESSAGING_EXTERN
bool isOpen();
135 QPID_MESSAGING_EXTERN
bool isOpen()
const;
146 QPID_MESSAGING_EXTERN
void reconnect(
const std::string& url);
156 QPID_MESSAGING_EXTERN
void reconnect();
161 QPID_MESSAGING_EXTERN std::string getUrl()
const;
168 QPID_MESSAGING_EXTERN
void close();
169 QPID_MESSAGING_EXTERN
Session createTransactionalSession(
const std::string& name = std::string());
170 QPID_MESSAGING_EXTERN
Session createSession(
const std::string& name = std::string());
172 QPID_MESSAGING_EXTERN
Session getSession(
const std::string& name)
const;
173 QPID_MESSAGING_EXTERN std::string getAuthenticatedUsername();
Definition: Connection.h:36
Definition: Connection.h:45