public class MessageProperties extends Object implements Serializable
AMQP properties.
| Constructor and Description |
|---|
MessageProperties()
No args constructor for use in serialization
|
MessageProperties(Date timestamp,
String correlationId,
String replyTo) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
Map<String,Object> |
getAdditionalProperties() |
String |
getCorrelationId()
Correlation ID
|
String |
getReplyTo()
Reply-to identifier.
|
Date |
getTimestamp()
Message timestamp
|
int |
hashCode() |
void |
setAdditionalProperty(String name,
Object value) |
void |
setCorrelationId(String correlationId)
Correlation ID
|
void |
setReplyTo(String replyTo)
Reply-to identifier.
|
void |
setTimestamp(Date timestamp)
Message timestamp
|
String |
toString() |
public MessageProperties()
public Date getTimestamp()
Message creation timestamp. (Required)
public void setTimestamp(Date timestamp)
Message creation timestamp. (Required)
timestamp - The timestamppublic String getCorrelationId()
Messages chain reference. (Required)
public void setCorrelationId(String correlationId)
Messages chain reference. (Required)
correlationId - The correlationIdpublic String getReplyTo()
Reply-to identifier. Default format is:
public void setReplyTo(String replyTo)
Reply-to identifier. Default format is:
replyTo - The replyToCopyright © 2017. All rights reserved.