diff options
| author | Alan Conway <aconway@apache.org> | 2008-05-26 18:10:05 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2008-05-26 18:10:05 +0000 |
| commit | ce7678789fe3e8c5caebb59a26aa418fbb95e5d3 (patch) | |
| tree | affd8e2de460cba285e7c25e15f5c3d94444f905 /cpp/src/qpid/SessionId.h | |
| parent | 0b56077cbb8b6e9cdd982cbdeaa3ec6fe1bd5434 (diff) | |
| download | qpid-python-ce7678789fe3e8c5caebb59a26aa418fbb95e5d3.tar.gz | |
Changes to Session API:
- Session is synchronous, no futures.
- AsyncSession is async, returns futures.
- Conversion functions sync(s) async(s) return a sync/async view of session s.
- Connection::newSession - takes name, no timeout
- SessionBase::getId - returns SessionId not UUID.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@660258 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/SessionId.h')
| -rw-r--r-- | cpp/src/qpid/SessionId.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/cpp/src/qpid/SessionId.h b/cpp/src/qpid/SessionId.h index 08553e8b1d..291c42a2bb 100644 --- a/cpp/src/qpid/SessionId.h +++ b/cpp/src/qpid/SessionId.h @@ -27,7 +27,17 @@ namespace qpid { -/** Identifier for a session */ +/** Identifier for a session. + * There are two parts to a session identifier: + * + * getUserId() returns the authentication principal associated with + * the session's connection. + * + * getName() returns the session name. + * + * The name must be unique among sessions with the same authentication + * principal. + */ class SessionId : boost::totally_ordered1<SessionId> { std::string userId; std::string name; |
