@ProviderType
public class StoredMessage
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
StoredMessage.Builder
A builder that can be used to create
StoredMessage instances. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.util.Optional<java.util.Date> |
getConfirmedOn()
For messages with QoS greater or equal than one, this field reports the
timestamp of the instant when the confirmation has been received from the
recipient.
|
java.util.Optional<java.util.Date> |
getCreatedOn()
Returns the timestamp of the instant when this message has been added to a
store.
|
java.util.Optional<DataTransportToken> |
getDataTransportToken()
Returns the
DataTransportToken associated with this message, if any. |
java.util.Optional<java.util.Date> |
getDroppedOn()
Returns the timestamp of the instant when this messages has been discarded.
|
int |
getId()
Returns the unique identifier of this message.
|
byte[] |
getPayload()
Returns the message payload.
|
int |
getPriority()
Defines a message priority.
|
java.util.Optional<java.util.Date> |
getPublishedOn()
Returns the timestamp of the instant when this message has been sent to the
recipient.
|
int |
getQos()
Returns the QoS of this message.
|
java.lang.String |
getTopic()
Returns the topic of this message.
|
int |
hashCode() |
boolean |
isRetain()
Returns the value of the MQTT
retain field. |
java.lang.String |
toString() |
public int getId()
public java.lang.String getTopic()
public int getQos()
getConfirmedOn()public boolean isRetain()
retain field.retain.public int getPriority()
public byte[] getPayload()
public java.util.Optional<java.util.Date> getCreatedOn()
public java.util.Optional<java.util.Date> getPublishedOn()
public java.util.Optional<java.util.Date> getConfirmedOn()
getQos()public java.util.Optional<java.util.Date> getDroppedOn()
public java.util.Optional<DataTransportToken> getDataTransportToken()
DataTransportToken associated with this message, if any.
A DataTransportToken is an identifier of this message
generated by the DataTransportService instance
that published it.DataTransportToken.public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object