BeeeOn Gateway
v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
|
#include <GWMessageContext.h>
Public Types | |
typedef Poco::SharedPtr < GWMessageContext > | Ptr |
Public Member Functions | |
GWMessageContext (GWMessagePriority priority) | |
GWMessage::Ptr | message () |
void | setMessage (GWMessage::Ptr msg) |
int | priority () const |
GlobalID | id () const |
Protected Attributes | |
int | m_priority |
GWMessage::Ptr | m_message |
Encapsulate GWMessage with its priority for sending. Higher priority means message is forwarded sooner.
This is typically used for messages forwarded to server to hold an additional information needed in case of response will arrive or, in case its needed, to resend the message.
This class is meant to be derived by specific message type context.