An event related to the operation of a Session
.
#include <bmqa_sessionevent.h>
◆ SessionEvent() [1/2]
BloombergLP::bmqa::SessionEvent::SessionEvent |
( |
| ) |
|
◆ SessionEvent() [2/2]
BloombergLP::bmqa::SessionEvent::SessionEvent |
( |
const SessionEvent & |
other | ) |
|
Create a new SessionEvent
having the same values (pointing to the same pimpl) as the specified other
.
◆ operator=()
Assign to this SessionEvent
the same values as the one from the specified rhs
(i.e., reference the same pimpl).
◆ type()
◆ correlationId()
◆ queueId()
QueueId BloombergLP::bmqa::SessionEvent::queueId |
( |
| ) |
const |
Return the queueId associated to this event, if any. The behavior is undefined unless this event corresponds to a queue related event (i.e. OPEN
, CONFIGURE
, CLOSE
, REOPEN
).
◆ statusCode()
int BloombergLP::bmqa::SessionEvent::statusCode |
( |
| ) |
const |
Return the status code that indicates success or the cause of a failure.
◆ errorDescription()
const bsl::string& BloombergLP::bmqa::SessionEvent::errorDescription |
( |
| ) |
const |
Return a printable description of the error, if statusCode
returns non-zero. Return an empty string otherwise.
◆ print()
bsl::ostream& BloombergLP::bmqa::SessionEvent::print |
( |
bsl::ostream & |
stream, |
|
|
int |
level = 0 , |
|
|
int |
spacesPerLevel = 4 |
|
) |
| const |
Format this object to the specified output stream
at the (absolute value of) the optionally specified indentation level
and return a reference to stream
. If level
is specified, optionally specify spacesPerLevel
, the number of spaces per indentation level for this and all of its nested objects. If level
is negative, suppress indentation of the first line. If spacesPerLevel
is negative format the entire output on one line, suppressing all but the initial indentation (as governed by level
). If stream
is not valid on entry, this operation has no effect.
Referenced by BloombergLP::bmqa::operator<<().
◆ operator==
Return true
if the specified rhs
object contains the value of the same type as contained in the specified lhs
object and the value itself is the same in both objects, return false otherwise.
◆ operator!=
Return false
if the specified rhs
object contains the value of the same type as contained in the specified lhs
object and the value itself is the same in both objects, return true
otherwise.
The documentation for this class was generated from the following file: