libbmq  a5f8a06ba1d16cb5a65643e1fa7f1a1d6aadef40
BloombergLP::bmqa::SessionEvent Class Reference

An event related to the operation of a Session.

#include <bmqa_sessionevent.h>

Public Member Functions

 SessionEvent ()
 Default constructor. More...
 
 SessionEvent (const SessionEvent &other)
 
SessionEventoperator= (const SessionEvent &rhs)
 
bmqt::SessionEventType::Enum type () const
 Return the session event type. More...
 
const bmqt::CorrelationIdcorrelationId () const
 Return the correlationId associated to this event, if any. More...
 
QueueId queueId () const
 
int statusCode () const
 
const bsl::string & errorDescription () const
 
bsl::ostream & print (bsl::ostream &stream, int level=0, int spacesPerLevel=4) const
 

Friends

bool operator== (const SessionEvent &lhs, const SessionEvent &rhs)
 
bool operator!= (const SessionEvent &lhs, const SessionEvent &rhs)
 

Constructor & Destructor Documentation

◆ 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.

Member Function Documentation

◆ operator=()

SessionEvent& BloombergLP::bmqa::SessionEvent::operator= ( const SessionEvent rhs)

Assign to this SessionEvent the same values as the one from the specified rhs (i.e., reference the same pimpl).

◆ type()

bmqt::SessionEventType::Enum BloombergLP::bmqa::SessionEvent::type ( ) const

◆ correlationId()

const bmqt::CorrelationId& BloombergLP::bmqa::SessionEvent::correlationId ( ) const

◆ 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<<().

Friends And Related Function Documentation

◆ operator==

bool operator== ( const SessionEvent lhs,
const SessionEvent rhs 
)
friend

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!=

bool operator!= ( const SessionEvent lhs,
const SessionEvent rhs 
)
friend

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: