Package RTL.SMQ
Class Msg
java.lang.Object
RTL.SMQ.Msg
Messages received from the broker are encapsulated in Msg instances.
-
Method Summary
Modifier and TypeMethodDescriptionfinal byte[]
getData()
Returns the raw data sent by the broker.final long
getPTid()
Returns the publisher's ephemeral topic ID, i.e.final long
Returns the subtopic ID for which this message was published to or zero if subtopic was not set by the publisher.final long
getTid()
Returns the topic ID for which this message was published to.final String
toString()
Attempt to convert the data from raw UTF-8 to a Java string.
-
Method Details
-
getData
public final byte[] getData()Returns the raw data sent by the broker. -
toString
Attempt to convert the data from raw UTF-8 to a Java string. -
getPTid
public final long getPTid()Returns the publisher's ephemeral topic ID, i.e. the sender's address. -
getTid
public final long getTid()Returns the topic ID for which this message was published to. -
getSubTid
public final long getSubTid()Returns the subtopic ID for which this message was published to or zero if subtopic was not set by the publisher.
-