From fbb5736c3d32ef829977be6bd598450fc8bb63d5 Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Fri, 7 Nov 2008 15:52:46 +0000 Subject: Added a bit more detail to comments. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@712173 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/client/FailoverManager.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'cpp') diff --git a/cpp/src/qpid/client/FailoverManager.h b/cpp/src/qpid/client/FailoverManager.h index 5af2a8f994..8b6eeda8a1 100644 --- a/cpp/src/qpid/client/FailoverManager.h +++ b/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 brokers = std::vector()); /** @@ -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: -- cgit v1.2.1