@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, hasProperty
getRestInteroperabilitySupport
<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 foundint getClassOfService()
String getDestinationName()
null
if information is not availableInboundMessage.MessageDiscardNotification getMessageDiscardNotification()
MessageDiscardNotification
and this is not expected to be
null
InboundMessage.ReplicationGroupMessageId getReplicationGroupMessageId()
null
if information is not availableString getSenderId()
null
, if not setLong getSenderTimestamp()
null
if not setlong getTimeStamp()
boolean isCached()
true
if this message was part of a cache reply, false otherwise
boolean isRedelivered()
true
if the message redelivery occurred in the pastCopyright 2019-2024 Solace Corporation. All rights reserved.