public final class DataMessage extends Message
Modifier and Type | Class and Description |
---|---|
static class |
DataMessage.Builder
DataMessage.Builder extends Message.MessageBuilder class. |
Message.Direction, Message.MessageBuilder<T extends Message.MessageBuilder<T>>, Message.Priority, Message.Reliability, Message.Type
DIAG_CLIENT_ADDRESS, DIAG_CREATED_TIME
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.util.List<DataItem<?>> |
getDataItems()
Get message payload as
List of DataItem s. |
java.lang.String |
getFormat()
Get the name of the format for data.
|
Message.Type |
getType()
Get type message type.
|
int |
hashCode() |
org.json.JSONObject |
toJson()
Export
DataMessage to JSONObject . |
java.lang.String |
toString()
Exports data from
DataMessage to String using JSON interpretation of the message. |
createBuilderFromJson, fromJson, fromJson, fromJson, getClientId, getDestination, getDiagnostics, getDiagnosticValue, getDirection, getEventTime, getId, getOrdinal, getPriority, getProperties, getReceivedTime, getReliability, getRemainingRetries, getSender, getSentTime, getSource, prettyPrintJson, prettyPrintJson, prettyPrintJson, prettyPrintJson, setRemainingRetries, toJson, toJson
public final java.lang.String getFormat()
null
.public final java.util.List<DataItem<?>> getDataItems()
List
of DataItem
s.DataMessage
, never null
.public Message.Type getType()
public final java.lang.String toString()
DataMessage
to String
using JSON interpretation of the message.public org.json.JSONObject toJson()
DataMessage
to JSONObject
.toJson
in class Message
DataMessage
as
JSONObject
.