| Constructor | Description |
|---|---|
Envelope() |
Default constructor setting the Envelope.timestamp to now.
|
| Modifier and Type | Method | Description |
|---|---|---|
String |
getBody() |
The original String representation before serializing into an
Message instance. |
long |
getDeliveryTag() |
The delivery tag set by RabbitMQ for low level message handling.
|
int |
getRetries() |
Gets the number of retries before a message is sent to the failed queue.
|
String |
getSource() |
Gets the queue name where this message was received from.
|
LocalDateTime |
getTimestamp() |
Gets the timestamp when the
Message was created. |
void |
setBody(String body) |
The original String representation before serializing into an
Message instance. |
void |
setDeliveryTag(long deliveryTag) |
The delivery tag set by RabbitMQ for low level message handling.
|
void |
setRetries(int retries) |
Sets the number of retries before a message is sent to the failed queue.
|
void |
setSource(String source) |
Gets the queue name where this message was received from.
|
void |
setTimestamp(LocalDateTime timestamp) |
Sets the timestamp when the
Message was created. |
String |
toString() |
public Envelope()
public String getBody()
Message instance. This field will not be serialized when the message is sent.Message as received from RabbitMQ.public void setBody(String body)
Message instance. This field will not be serialized when the message is sent.body - The string representation to set.public long getDeliveryTag()
public void setDeliveryTag(long deliveryTag)
deliveryTag - The delivery tag set by RabbitMQ.public int getRetries()
public void setRetries(int retries)
retries - The number of retries.public LocalDateTime getTimestamp()
Message was created.public void setTimestamp(LocalDateTime timestamp)
Message was created.timestamp - The timestamp when the message was created.public String getSource()
public void setSource(String source)
source - the queue name where this message was received from.Copyright © 2018. All rights reserved.