| Constructor and Description |
|---|
SimpleMessage(java.lang.String topic,
java.nio.ByteBuffer payload) |
SimpleMessage(java.lang.String topic,
java.nio.ByteBuffer payload,
MessagingContext context) |
| Modifier and Type | Method and Description |
|---|---|
MessagingContext |
getContext()
Returns the messages Context.
|
java.nio.ByteBuffer |
payload()
Returns the playload of the message as
ByteBuffer |
java.lang.String |
topic()
Returns the MQTT topic, the message belongs to
|
public SimpleMessage(java.lang.String topic,
java.nio.ByteBuffer payload)
public SimpleMessage(java.lang.String topic,
java.nio.ByteBuffer payload,
MessagingContext context)
public java.lang.String topic()
Messagepublic java.nio.ByteBuffer payload()
MessageByteBufferpublic MessagingContext getContext()
MessagegetContext in interface MessageMessagingContext of this messageData In Motion Consulting (c) 2017