summaryrefslogtreecommitdiff
path: root/qpid/cpp/src
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2008-11-07 15:52:46 +0000
committerGordon Sim <gsim@apache.org>2008-11-07 15:52:46 +0000
commita8a2c73561400a2868411f1aed6b2f73be151735 (patch)
tree028ce332e762d792cde3f0a021b8c741e3fc2595 /qpid/cpp/src
parent53247faba484516d9c468b7ae7f514f32541295a (diff)
downloadqpid-python-a8a2c73561400a2868411f1aed6b2f73be151735.tar.gz
Added a bit more detail to comments.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@712173 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src')
-rw-r--r--qpid/cpp/src/qpid/client/FailoverManager.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/qpid/cpp/src/qpid/client/FailoverManager.h b/qpid/cpp/src/qpid/client/FailoverManager.h
index 5af2a8f994..8b6eeda8a1 100644
--- a/qpid/cpp/src/qpid/client/FailoverManager.h
+++ b/qpid/cpp/src/qpid/client/FailoverManager.h
@@ -91,6 +91,9 @@ class FailoverManager
* known brokers from the last connection will be used. If no list
* is specified and this is the first connect attempt, the host
* and port from the initial settings will be used.
+ *
+ * If the full list is tried and all attempts fail,
+ * CannotConnectException is thrown.
*/
Connection& connect(std::vector<Url> brokers = std::vector<Url>());
/**
@@ -106,6 +109,12 @@ class FailoverManager
* a session on which to carry out the work of the command,
* handling failover occuring while exeuting that command and
* re-starting the work.
+ *
+ * Multiple concurrent threads can call execute with different
+ * commands; each thread will be allocated its own
+ * session. FailoverManager will coordinate the different threads
+ * on failover to ensure they continue to use the same logical
+ * connection.
*/
void execute(Command&);
private: