@ProviderType public interface InboundMessage extends Message
| Modifier and Type | Interface and Description |
|---|---|
static interface |
InboundMessage.IncompatibleMessageHandler
An interface for incompatible message listeners.
|
static interface |
InboundMessage.MessageDiscardNotification
An interface for message discard notifications.
|
static interface |
InboundMessage.ReplicationGroupMessageId
An interface to access Replication Group Message ID.
|
InteroperabilitySupport.RestInteroperabilitySupport| Modifier and Type | Method and Description |
|---|---|
<T extends Serializable> |
getAndConvertPayload(Converter.BytesToObject<T> converter,
Class<T> outputType)
Retrieves the raw payload and converts to the target type using given converter.
|
int |
getClassOfService()
Retrieves the Class of Service level of a given message.
|
String |
getDestinationName()
Retrieves the name of the destination of the received message (topic or queue).
|
InboundMessage.MessageDiscardNotification |
getMessageDiscardNotification()
Retrieves the Message Discard Notification about previously discarded messages.
|
InboundMessage.ReplicationGroupMessageId |
getReplicationGroupMessageId()
Retrieves the Replication Group Message ID if available
|
String |
getSenderId()
Returns the Sender's ID.
|
Long |
getSenderTimestamp()
Retrieves the sender's timestamp.
|
long |
getTimeStamp()
Gets the receive timestamp (in milliseconds, from midnight, January 1, 1970 UTC).
|
boolean |
isCached()
Retrieves the indicator if this message was part of a cache reply
|
boolean |
isRedelivered()
Retrieves the message redelivery status.
|
dump, getApplicationMessageId, getApplicationMessageType, getCorrelationId, getCorrelationKey, getExpiration, getPayloadAsBytes, getPayloadAsString, getPriority, getProperties, getProperty, getSequenceNumber, hasContent, hasPropertygetRestInteroperabilitySupportboolean isRedelivered()
true if the message redelivery occurred in the pastInboundMessage.MessageDiscardNotification getMessageDiscardNotification()
MessageDiscardNotification and this is not expected to be
null<T extends Serializable> T getAndConvertPayload(Converter.BytesToObject<T> converter, Class<T> outputType) throws PubSubPlusClientException.IncompatibleMessageException
T - the user-defined type for returned valueconverter - the instance to convert bytes to expected type of objectoutputType - the class of the expected typeconverter using the
provided raw payloadPubSubPlusClientException.IncompatibleMessageException - if an incompatible message payload is foundString getDestinationName()
null if information is not availablelong getTimeStamp()
boolean isCached()
true if this message was part of a cache reply, false otherwiseInboundMessage.ReplicationGroupMessageId getReplicationGroupMessageId()
null if information is not availableint getClassOfService()
Long getSenderTimestamp()
null if not setString getSenderId()
null, if not setCopyright 2019-2025 Solace Corporation. All rights reserved.