diff options
| author | Carl C. Trieloff <cctrieloff@apache.org> | 2009-01-30 18:59:24 +0000 |
|---|---|---|
| committer | Carl C. Trieloff <cctrieloff@apache.org> | 2009-01-30 18:59:24 +0000 |
| commit | bcfa0a86baebb2598c0be270121d98a0f31b19c6 (patch) | |
| tree | 726ac7a2e448a6a2d60752b63fd0d8c9ca7c9b31 /cpp/src/qpid/client/Connection.cpp | |
| parent | a74a06df1f2dddc5c58e33b7a7290c712510e941 (diff) | |
| download | qpid-python-bcfa0a86baebb2598c0be270121d98a0f31b19c6.tar.gz | |
Correction for: start a broker in cluster, send messages that are flow to disk, then join a broker to the cluster. Then consume from the new node. Cotent released messages where loosing content. This patch corrects that.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@739378 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/client/Connection.cpp')
| -rw-r--r-- | cpp/src/qpid/client/Connection.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cpp/src/qpid/client/Connection.cpp b/cpp/src/qpid/client/Connection.cpp index f450344aa7..3562df4a74 100644 --- a/cpp/src/qpid/client/Connection.cpp +++ b/cpp/src/qpid/client/Connection.cpp @@ -119,6 +119,13 @@ void Connection::open(const ConnectionSettings& settings) impl->registerFailureCallback ( failureCallback ); } +const ConnectionSettings& Connection::getNegotiatedSettings() +{ + if (!isOpen()) + throw Exception(QPID_MSG("Connection is not open.")); + return impl->getNegotiatedSettings(); +} + Session Connection::newSession(const std::string& name, uint32_t timeout) { if (!isOpen()) throw Exception(QPID_MSG("Connection has not yet been opened")); |
