summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/qmf/ResilientConnection.h
diff options
context:
space:
mode:
Diffstat (limited to 'qpid/cpp/src/qmf/ResilientConnection.h')
-rw-r--r--qpid/cpp/src/qmf/ResilientConnection.h17
1 files changed, 7 insertions, 10 deletions
diff --git a/qpid/cpp/src/qmf/ResilientConnection.h b/qpid/cpp/src/qmf/ResilientConnection.h
index bb565e27ae..03f1b9c0d5 100644
--- a/qpid/cpp/src/qmf/ResilientConnection.h
+++ b/qpid/cpp/src/qmf/ResilientConnection.h
@@ -21,12 +21,13 @@
*/
#include <qmf/Message.h>
-#include <qpid/client/Connection.h>
-#include <qpid/client/ConnectionSettings.h>
+#include <qmf/ConnectionSettings.h>
#include <string>
namespace qmf {
+ class ResilientConnectionImpl;
+
/**
* Represents events that occur, unsolicited, from ResilientConnection.
*/
@@ -44,12 +45,11 @@ namespace qmf {
Message message; // RECV
};
- struct SessionHandle {
- void* handle;
+ class SessionHandle {
+ friend class ResilientConnectionImpl;
+ void* impl;
};
- class ResilientConnectionImpl;
-
/**
* ResilientConnection represents a Qpid connection that is resilient.
*
@@ -68,10 +68,7 @@ namespace qmf {
*@param delayMax Maximum delay (in seconds) between retries.
*@param delayFactor Factor to multiply retry delay by after each failure.
*/
- ResilientConnection(qpid::client::ConnectionSettings& settings,
- int delayMin = 1,
- int delayMax = 128,
- int delayFactor = 2);
+ ResilientConnection(const ConnectionSettings& settings);
~ResilientConnection();
/**