libbmq  a5f8a06ba1d16cb5a65643e1fa7f1a1d6aadef40
bmqa_messageevent.h File Reference

Provide the application with data event notifications. More...

#include <bmqa_messageiterator.h>
#include <bmqt_messageeventtype.h>
#include <bsl_iosfwd.h>
#include <bsl_memory.h>

Go to the source code of this file.

Classes

class  BloombergLP::bmqa::MessageEvent
 

Namespaces

 BloombergLP
 
 BloombergLP::bmqa
 

Functions

bsl::ostream & BloombergLP::bmqa::operator<< (bsl::ostream &stream, const MessageEvent &rhs)
 

Detailed Description

This component provides a bmqa::MessageEvent notification object used by the bmqa::Session to provide BlazingMQ applications with data messages received from the broker. The application can consume the messages by asking this bmqa::MessageEvent for a bmqa::MessageIterator.

Note that bmqa::MessageEvent is implemented using the pimpl idiom, so copying a bmqa::MessageEvent is very cheap (a pointer copy). All copies of this bmqa::MessageEvent will share the same underlying implementation.

See also
bmqa::MessageIterator: iterator over the messages in this event
bmqa::Message: type of the Message