public class Msg
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
byte[] |
getData()
Returns the raw data sent by the broker.
|
long |
getPTid()
Returns the publisher's ephemeral topic ID, i.e.
|
long |
getSubTid()
Returns the subtopic ID for which this message was published to
or zero if subtopic was not set by the publisher.
|
long |
getTid()
Returns the topic ID for which this message was published to.
|
java.lang.String |
toString()
Attempt to convert the data from raw UTF-8 to a Java string.
|
public final byte[] getData()
public final java.lang.String toString()
toString
in class java.lang.Object
SMQ.publish(String topic, String msg)
public final long getPTid()
public final long getTid()
public final long getSubTid()