public final class AlertMessage extends Message
Modifier and Type | Class and Description |
---|---|
static class |
AlertMessage.Builder
AlertMessage.Builder extends Message.MessageBuilder class. |
static class |
AlertMessage.Severity
The Severity of this Alert
|
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 |
getDescription()
Gets the description for this alert.
|
java.lang.String |
getFormat()
Get the name of the format for data.
|
AlertMessage.Severity |
getSeverity()
Gets the severity of this alert
|
Message.Type |
getType()
Abstract method to return message type.
|
int |
hashCode() |
org.json.JSONObject |
toJson()
Export the basic properties of the message to
JSONObject . |
java.lang.String |
toString()
Exports data from
AlertMessage 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 AlertMessage.Severity getSeverity()
public java.lang.String getDescription()
public final java.lang.String getFormat()
null
.public final java.util.List<DataItem<?>> getDataItems()
List
of DataItem
s.AlertMessage
, never null
.public Message.Type getType()
Message
public final java.lang.String toString()
AlertMessage
to String
using JSON interpretation of the message.public org.json.JSONObject toJson()
Message
JSONObject
.