public class MessageProperties
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BATCH_FORMAT_LENGTH_HEADER4 |
static java.lang.String |
CONTENT_TYPE_BYTES |
static java.lang.String |
CONTENT_TYPE_JSON |
static java.lang.String |
CONTENT_TYPE_JSON_ALT |
static java.lang.String |
CONTENT_TYPE_SERIALIZED_OBJECT |
static java.lang.String |
CONTENT_TYPE_TEXT_PLAIN |
static java.lang.String |
CONTENT_TYPE_XML |
static java.lang.String |
DEFAULT_CONTENT_TYPE |
static MessageDeliveryMode |
DEFAULT_DELIVERY_MODE |
static java.lang.Integer |
DEFAULT_PRIORITY |
static java.lang.String |
SPRING_AUTO_DECOMPRESS |
static java.lang.String |
SPRING_BATCH_FORMAT |
static java.lang.String |
X_DELAY |
Constructor and Description |
---|
MessageProperties() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAppId() |
java.lang.String |
getClusterId() |
java.lang.String |
getConsumerQueue() |
java.lang.String |
getConsumerTag() |
java.lang.String |
getContentEncoding() |
long |
getContentLength() |
java.lang.String |
getContentType() |
java.lang.String |
getCorrelationId()
Get the correlation id.
|
java.lang.String |
getCorrelationIdString()
Deprecated.
use
getCorrelationId() . |
java.lang.Integer |
getDelay()
The x-delay header (outbound).
|
MessageDeliveryMode |
getDeliveryMode() |
long |
getDeliveryTag() |
java.lang.String |
getExpiration() |
java.util.Map<java.lang.String,java.lang.Object> |
getHeaders() |
java.lang.reflect.Type |
getInferredArgumentType()
The inferred target argument type when using a method-level
@RabbitListener . |
java.lang.Integer |
getMessageCount()
Return the server's most recent estimate of the number of messages remaining on the queue.
|
java.lang.String |
getMessageId() |
java.lang.Integer |
getPriority() |
java.lang.Integer |
getReceivedDelay()
When a delayed message exchange is used the x-delay header on a
received message contains the delay.
|
MessageDeliveryMode |
getReceivedDeliveryMode() |
java.lang.String |
getReceivedExchange() |
java.lang.String |
getReceivedRoutingKey() |
java.lang.String |
getReceivedUserId()
Return the user id from an incoming message.
|
java.lang.Boolean |
getRedelivered() |
java.lang.String |
getReplyTo() |
Address |
getReplyToAddress() |
java.lang.Object |
getTargetBean()
The target bean when using
@RabbitListener . |
java.lang.reflect.Method |
getTargetMethod()
The target method when using a method-level
@RabbitListener . |
java.util.Date |
getTimestamp() |
java.lang.String |
getType() |
java.lang.String |
getUserId() |
int |
hashCode() |
protected boolean |
isContentLengthSet() |
protected boolean |
isDeliveryTagSet() |
boolean |
isFinalRetryForMessageWithNoId() |
java.lang.Boolean |
isRedelivered() |
void |
setAppId(java.lang.String appId) |
void |
setClusterId(java.lang.String clusterId) |
void |
setConsumerQueue(java.lang.String consumerQueue) |
void |
setConsumerTag(java.lang.String consumerTag) |
void |
setContentEncoding(java.lang.String contentEncoding) |
void |
setContentLength(long contentLength) |
void |
setContentType(java.lang.String contentType) |
void |
setCorrelationId(java.lang.String correlationId)
Set the correlation id.
|
void |
setCorrelationIdString(java.lang.String correlationId)
Deprecated.
- use
setCorrelationId(String) . |
void |
setDelay(java.lang.Integer delay)
Set the x-delay header.
|
void |
setDeliveryMode(MessageDeliveryMode deliveryMode) |
void |
setDeliveryTag(long deliveryTag) |
void |
setExpiration(java.lang.String expiration) |
void |
setFinalRetryForMessageWithNoId(boolean finalRetryForMessageWithNoId) |
void |
setHeader(java.lang.String key,
java.lang.Object value) |
void |
setInferredArgumentType(java.lang.reflect.Type inferredArgumentType)
Set the inferred target argument type when using a method-level
@RabbitListener . |
void |
setMessageCount(java.lang.Integer messageCount)
Set the message count.
|
void |
setMessageId(java.lang.String messageId) |
void |
setPriority(java.lang.Integer priority) |
void |
setReceivedDelay(java.lang.Integer receivedDelay)
When a delayed message exchange is used the x-delay header on a
received message contains the delay.
|
void |
setReceivedDeliveryMode(MessageDeliveryMode receivedDeliveryMode) |
void |
setReceivedExchange(java.lang.String receivedExchange) |
void |
setReceivedRoutingKey(java.lang.String receivedRoutingKey) |
void |
setReceivedUserId(java.lang.String receivedUserId) |
void |
setRedelivered(java.lang.Boolean redelivered) |
void |
setReplyTo(java.lang.String replyTo) |
void |
setReplyToAddress(Address replyTo) |
void |
setTargetBean(java.lang.Object targetBean)
Set the target bean when using
@RabbitListener . |
void |
setTargetMethod(java.lang.reflect.Method targetMethod)
Set the target method when using a method-level
@RabbitListener . |
void |
setTimestamp(java.util.Date timestamp) |
void |
setType(java.lang.String type) |
void |
setUserId(java.lang.String userId) |
java.lang.String |
toString() |
public static final java.lang.String CONTENT_TYPE_BYTES
public static final java.lang.String CONTENT_TYPE_TEXT_PLAIN
public static final java.lang.String CONTENT_TYPE_SERIALIZED_OBJECT
public static final java.lang.String CONTENT_TYPE_JSON
public static final java.lang.String CONTENT_TYPE_JSON_ALT
public static final java.lang.String CONTENT_TYPE_XML
public static final java.lang.String SPRING_BATCH_FORMAT
public static final java.lang.String BATCH_FORMAT_LENGTH_HEADER4
public static final java.lang.String SPRING_AUTO_DECOMPRESS
public static final java.lang.String X_DELAY
public static final java.lang.String DEFAULT_CONTENT_TYPE
public static final MessageDeliveryMode DEFAULT_DELIVERY_MODE
public static final java.lang.Integer DEFAULT_PRIORITY
public void setHeader(java.lang.String key, java.lang.Object value)
public java.util.Map<java.lang.String,java.lang.Object> getHeaders()
public void setTimestamp(java.util.Date timestamp)
public java.util.Date getTimestamp()
public void setMessageId(java.lang.String messageId)
public java.lang.String getMessageId()
public void setUserId(java.lang.String userId)
public java.lang.String getUserId()
public java.lang.String getReceivedUserId()
public void setReceivedUserId(java.lang.String receivedUserId)
public void setAppId(java.lang.String appId)
public java.lang.String getAppId()
public void setClusterId(java.lang.String clusterId)
public java.lang.String getClusterId()
public void setType(java.lang.String type)
public java.lang.String getType()
public void setCorrelationId(java.lang.String correlationId)
correlationId
- the id.public java.lang.String getCorrelationId()
@Deprecated public java.lang.String getCorrelationIdString()
getCorrelationId()
.@Deprecated public void setCorrelationIdString(java.lang.String correlationId)
setCorrelationId(String)
.correlationId
- the id.public void setReplyTo(java.lang.String replyTo)
public java.lang.String getReplyTo()
public void setReplyToAddress(Address replyTo)
public Address getReplyToAddress()
public void setContentType(java.lang.String contentType)
public java.lang.String getContentType()
public void setContentEncoding(java.lang.String contentEncoding)
public java.lang.String getContentEncoding()
public void setContentLength(long contentLength)
public long getContentLength()
protected final boolean isContentLengthSet()
public void setDeliveryMode(MessageDeliveryMode deliveryMode)
public MessageDeliveryMode getDeliveryMode()
public MessageDeliveryMode getReceivedDeliveryMode()
public void setReceivedDeliveryMode(MessageDeliveryMode receivedDeliveryMode)
public void setExpiration(java.lang.String expiration)
public java.lang.String getExpiration()
public void setPriority(java.lang.Integer priority)
public java.lang.Integer getPriority()
public void setReceivedExchange(java.lang.String receivedExchange)
public java.lang.String getReceivedExchange()
public void setReceivedRoutingKey(java.lang.String receivedRoutingKey)
public java.lang.String getReceivedRoutingKey()
public java.lang.Integer getReceivedDelay()
getDelay()
public void setReceivedDelay(java.lang.Integer receivedDelay)
receivedDelay
- the received delay.public void setRedelivered(java.lang.Boolean redelivered)
public java.lang.Boolean isRedelivered()
public java.lang.Boolean getRedelivered()
public void setDeliveryTag(long deliveryTag)
public long getDeliveryTag()
protected final boolean isDeliveryTagSet()
public void setMessageCount(java.lang.Integer messageCount)
messageCount
- the countgetMessageCount()
public java.lang.Integer getMessageCount()
basicGet
.public java.lang.String getConsumerTag()
public void setConsumerTag(java.lang.String consumerTag)
public java.lang.String getConsumerQueue()
public void setConsumerQueue(java.lang.String consumerQueue)
public java.lang.Integer getDelay()
getReceivedDelay()
public void setDelay(java.lang.Integer delay)
delay
- the delay.public boolean isFinalRetryForMessageWithNoId()
public void setFinalRetryForMessageWithNoId(boolean finalRetryForMessageWithNoId)
public java.lang.reflect.Type getInferredArgumentType()
@RabbitListener
.public void setInferredArgumentType(java.lang.reflect.Type inferredArgumentType)
@RabbitListener
.inferredArgumentType
- the type.public java.lang.reflect.Method getTargetMethod()
@RabbitListener
.public void setTargetMethod(java.lang.reflect.Method targetMethod)
@RabbitListener
.targetMethod
- the target method.public java.lang.Object getTargetBean()
@RabbitListener
.public void setTargetBean(java.lang.Object targetBean)
@RabbitListener
.targetBean
- the bean.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object