@DefaultSchema(value=AutoValueSchema.class) public abstract static class Solace.Record extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Solace.Record.Builder |
Constructor and Description |
---|
Record() |
Modifier and Type | Method and Description |
---|---|
static Solace.Record.Builder |
builder() |
abstract byte[] |
getAttachmentBytes()
Gets the attachment data of the message as a byte array, if any.
|
abstract @Nullable Solace.Destination |
getDestination()
Gets the destination (topic or queue) to which the message was sent.
|
abstract long |
getExpiration()
Gets the message expiration time in milliseconds since the Unix epoch.
|
abstract java.lang.String |
getMessageId()
Gets the unique identifier of the message, a string for an application-specific message
identifier.
|
abstract byte[] |
getPayload()
Gets the payload of the message as a byte array.
|
abstract int |
getPriority()
Gets the priority level of the message (0-255, higher is more important).
|
abstract @Nullable java.lang.Long |
getReceiveTimestamp()
Gets the timestamp (in milliseconds since the Unix epoch) when the message was received by
the Solace broker.
|
abstract boolean |
getRedelivered()
Indicates whether the message has been redelivered due to a prior delivery failure.
|
abstract @Nullable java.lang.String |
getReplicationGroupMessageId()
Gets the ID for the message within its replication group (if applicable).
|
abstract @Nullable Solace.Destination |
getReplyTo()
Gets the destination to which replies to this message should be sent.
|
abstract @Nullable java.lang.Long |
getSenderTimestamp()
Gets the timestamp (in milliseconds since the Unix epoch) when the message was sent by the
sender.
|
abstract @Nullable java.lang.Long |
getSequenceNumber()
Gets the sequence number of the message (if applicable).
|
abstract long |
getTimeToLive()
The number of milliseconds before the message is discarded or moved to Dead Message Queue.
|
@SchemaFieldNumber(value="0") public abstract java.lang.String getMessageId()
Mapped from XMLMessage.getApplicationMessageId()
@SchemaFieldNumber(value="1") public abstract byte[] getPayload()
Mapped from BytesXMLMessage.getBytes()
@SchemaFieldNumber(value="2") public abstract @Nullable Solace.Destination getDestination()
Mapped from XMLMessage.getDestination()
@SchemaFieldNumber(value="3") public abstract long getExpiration()
A value of 0 indicates the message does not expire.
Mapped from XMLMessage.getExpiration()
@SchemaFieldNumber(value="4") public abstract int getPriority()
Mapped from XMLMessage.getPriority()
@SchemaFieldNumber(value="5") public abstract boolean getRedelivered()
Mapped from XMLMessage.getRedelivered()
@SchemaFieldNumber(value="6") public abstract @Nullable Solace.Destination getReplyTo()
Mapped from XMLMessage.getReplyTo()
@SchemaFieldNumber(value="7") public abstract @Nullable java.lang.Long getReceiveTimestamp()
Mapped from XMLMessage.getReceiveTimestamp()
@SchemaFieldNumber(value="8") public abstract @Nullable java.lang.Long getSenderTimestamp()
@SchemaFieldNumber(value="9") public abstract @Nullable java.lang.Long getSequenceNumber()
Mapped from XMLMessage.getSequenceNumber()
@SchemaFieldNumber(value="10") public abstract long getTimeToLive()
Mapped from XMLMessage.getTimeToLive()
@SchemaFieldNumber(value="11") public abstract @Nullable java.lang.String getReplicationGroupMessageId()
Mapped from XMLMessage.getReplicationGroupMessageId()
The ID for a particular message is only guaranteed to be the same for a particular copy of a message on a particular queue or topic endpoint within a replication group. The same message on different queues or topic endpoints within the same replication group may or may not have the same replication group message ID. See more at https://docs.solace.com/API/API-Developer-Guide/Detecting-Duplicate-Mess.htm
@SchemaFieldNumber(value="12") public abstract byte[] getAttachmentBytes()
Mapped from XMLMessage.getAttachmentByteBuffer()
public static Solace.Record.Builder builder()