public class StreamMessageProperties extends MessageProperties
MessageProperties
extension for stream messages.BATCH_FORMAT_LENGTH_HEADER4, CONTENT_TYPE_BYTES, CONTENT_TYPE_JSON, CONTENT_TYPE_JSON_ALT, CONTENT_TYPE_SERIALIZED_OBJECT, CONTENT_TYPE_TEXT_PLAIN, CONTENT_TYPE_XML, DEFAULT_CONTENT_TYPE, DEFAULT_DELIVERY_MODE, DEFAULT_PRIORITY, SPRING_AUTO_DECOMPRESS, SPRING_BATCH_FORMAT, X_DELAY
Constructor and Description |
---|
StreamMessageProperties()
Create a new instance.
|
StreamMessageProperties(com.rabbitmq.stream.MessageHandler.Context context)
Create a new instance with the provided context.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
com.rabbitmq.stream.MessageHandler.Context |
getContext()
Return the stream
MessageHandler.Context for the message. |
long |
getCreationTime()
See
Properties.getCreationTime() . |
String |
getGroupId()
See
Properties.getGroupId() . |
long |
getGroupSequence()
See
Properties.getGroupSequence() . |
String |
getReplyToGroupId()
See
Properties.getReplyToGroupId() . |
String |
getSubject()
See
Properties.getSubject() . |
String |
getTo()
See
Properties.getTo() . |
int |
hashCode() |
void |
setCreationTime(long creationTime)
See
MessageBuilder.PropertiesBuilder.creationTime(long) . |
void |
setGroupId(String groupId)
See
MessageBuilder.PropertiesBuilder.groupId(String) . |
void |
setGroupSequence(long groupSequence)
See
MessageBuilder.PropertiesBuilder.groupSequence(long) . |
void |
setReplyToGroupId(String replyToGroupId)
See
MessageBuilder.PropertiesBuilder.replyToGroupId(String) . |
void |
setSubject(String subject)
See
MessageBuilder.PropertiesBuilder.subject(String) . |
void |
setTo(String address)
See
MessageBuilder.PropertiesBuilder.to(String) . |
getAppId, getClusterId, getConsumerQueue, getConsumerTag, getContentEncoding, getContentLength, getContentType, getCorrelationId, getDelay, getDeliveryMode, getDeliveryTag, getExpiration, getHeader, getHeaders, getInferredArgumentType, getMessageCount, getMessageId, getPriority, getPublishSequenceNumber, getReceivedDelay, getReceivedDeliveryMode, getReceivedExchange, getReceivedRoutingKey, getReceivedUserId, getRedelivered, getReplyTo, getReplyToAddress, getTargetBean, getTargetMethod, getTimestamp, getType, getUserId, getXDeathHeader, isContentLengthSet, isDeliveryTagSet, isFinalRetryForMessageWithNoId, isLastInBatch, isRedelivered, setAppId, setClusterId, setConsumerQueue, setConsumerTag, setContentEncoding, setContentLength, setContentType, setCorrelationId, setDelay, setDeliveryMode, setDeliveryTag, setExpiration, setFinalRetryForMessageWithNoId, setHeader, setInferredArgumentType, setLastInBatch, setMessageCount, setMessageId, setPriority, setPublishSequenceNumber, setReceivedDelay, setReceivedDeliveryMode, setReceivedExchange, setReceivedRoutingKey, setReceivedUserId, setRedelivered, setReplyTo, setReplyToAddress, setTargetBean, setTargetMethod, setTimestamp, setType, setUserId, toString
public StreamMessageProperties()
public StreamMessageProperties(@Nullable com.rabbitmq.stream.MessageHandler.Context context)
context
- the context.@Nullable public com.rabbitmq.stream.MessageHandler.Context getContext()
MessageHandler.Context
for the message.public String getTo()
Properties.getTo()
.public void setTo(String address)
MessageBuilder.PropertiesBuilder.to(String)
.address
- the address.public String getSubject()
Properties.getSubject()
.public void setSubject(String subject)
MessageBuilder.PropertiesBuilder.subject(String)
.subject
- the subject.public long getCreationTime()
Properties.getCreationTime()
.public void setCreationTime(long creationTime)
MessageBuilder.PropertiesBuilder.creationTime(long)
.creationTime
- the creation time.public String getGroupId()
Properties.getGroupId()
.public void setGroupId(String groupId)
MessageBuilder.PropertiesBuilder.groupId(String)
.groupId
- the group id.public long getGroupSequence()
Properties.getGroupSequence()
.public void setGroupSequence(long groupSequence)
MessageBuilder.PropertiesBuilder.groupSequence(long)
.groupSequence
- the group sequence.public String getReplyToGroupId()
Properties.getReplyToGroupId()
.public void setReplyToGroupId(String replyToGroupId)
MessageBuilder.PropertiesBuilder.replyToGroupId(String)
.replyToGroupId
- the reply to group id.public int hashCode()
hashCode
in class MessageProperties
public boolean equals(Object obj)
equals
in class MessageProperties