Quick Links:

bmqa | bmqpi | bmqt

Namespaces

Component bmqa_event
[Package bmqa]

Provide a generic variant encompassing all types of events. More...

Namespaces

namespace  bmqimp
namespace  bmqa

Detailed Description

Outline
Purpose:
Provide a generic variant encompassing all types of events.
Classes:
bmqa::Event variant encompassing all types of events.
See also:
bmqa::MessageEvent : Data event notification. bmqa::SessionEvent : Session and queue status event notification.
Description:
This component provides a generic bmqa::Event notification object used by the bmqa::Session to provide BlazingMQ applications with information regarding the status of the session or data coming from queues. This bmqa::Event object is only used when user wants to process messages from the EventQueue using its own thread, by calling the bmqa::Session::nextEvent method.
A bmqa::Event can either be a bmqa::SessionEvent or a bmqa::MessageEvent. The former describes notifications such as the result of a session start or the opening of a queue. The latter carries application messages retrieved from a queue.
Note that event is implemented using the pimpl idiom, so copying an event is very cheap (a pointer copy). All copies of this bmqa::Event, as well as any SessionEvent or MessageEvent extracted from it will share the same underlying implementation.