diff options
author | Gordon Sim <gsim@apache.org> | 2008-11-07 15:52:46 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2008-11-07 15:52:46 +0000 |
commit | fbb5736c3d32ef829977be6bd598450fc8bb63d5 (patch) | |
tree | 48b68ff0478eb75022ea2d294ef7f35a12de001f /cpp/src | |
parent | 82cb5b781573bbdd314bae51694ffada3312b5da (diff) | |
download | qpid-python-fbb5736c3d32ef829977be6bd598450fc8bb63d5.tar.gz |
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
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/qpid/client/FailoverManager.h | 9 |
1 files changed, 9 insertions, 0 deletions
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<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: |