Apache Qpid - AMQP Messaging for Java JMS, C++, Python, Ruby, and .NET | Apache Qpid Documentation |
Identifier for a session. More...
#include <qpid/SessionId.h>
Public Member Functions | |
SessionId (const std::string &userId=std::string(), const std::string &name=std::string()) | |
std::string | getUserId () const |
std::string | getName () const |
bool | operator< (const SessionId &) const |
bool | operator== (const SessionId &id) const |
std::string | str () const |
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.
qpid::SessionId::SessionId | ( | const std::string & | userId = std::string() , |
const std::string & | name = std::string() |
||
) |
std::string qpid::SessionId::getName | ( | ) | const [inline] |
Definition at line 48 of file SessionId.h.
std::string qpid::SessionId::getUserId | ( | ) | const [inline] |
Definition at line 47 of file SessionId.h.
bool qpid::SessionId::operator< | ( | const SessionId & | ) | const |
bool qpid::SessionId::operator== | ( | const SessionId & | id | ) | const |
std::string qpid::SessionId::str | ( | ) | const |