Class QueueMessageAsDeadLetterMessage
java.lang.Object
dk.cloudcreate.essentials.components.foundation.messaging.queue.operations.QueueMessageAsDeadLetterMessage
Queue the message directly as a Dead Letter Message. Dead Letter Messages won't be delivered to any
To deliver a Dead Letter Message you must first resurrect the message using
Operation also matches
DurableQueueConsumerTo deliver a Dead Letter Message you must first resurrect the message using
DurableQueues.resurrectDeadLetterMessage(QueueEntryId, Duration)Operation also matches
DurableQueuesInterceptor.intercept(QueueMessageAsDeadLetterMessage, InterceptorChain)-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionQueueMessageAsDeadLetterMessage(QueueName queueName, Message message, Exception causeOfError) Queue the message directly as a Dead Letter Message. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Create a new builder that produces a newQueueMessageAsDeadLetterMessageinstanceGet the dead letter messagevoidsetCauseOfError(Exception causeOfError) voidsetMessage(Message message) toString()
-
Field Details
-
queueName
-
-
Constructor Details
-
QueueMessageAsDeadLetterMessage
public QueueMessageAsDeadLetterMessage(QueueName queueName, Message message, Exception causeOfError) Queue the message directly as a Dead Letter Message. Dead Letter Messages won't be delivered to anyDurableQueueConsumer
To deliver a Dead Letter Message you must first resurrect the message usingDurableQueues.resurrectDeadLetterMessage(QueueEntryId, Duration)- Parameters:
queueName- the name of the Queue the message is added tomessage- the message being enqueued directly as a Dead Letter Message (Message/OrderedMessage)causeOfError- the reason for the message being queued directly as a Dead Letter Message
-
-
Method Details
-
builder
Create a new builder that produces a newQueueMessageAsDeadLetterMessageinstance- Returns:
- a new
QueueMessageAsDeadLetterMessageBuilderinstance
-
getQueueName
- Returns:
- the name of the Queue the message is added to
-
getPayload
- Returns:
- the message payload
-
getMessage
Get the dead letter message- Returns:
- the dead letter message (
Message/OrderedMessage)
-
setMessage
- Parameters:
message- set the dead letter message (Message/OrderedMessage)
-
getCauseOfError
- Returns:
- the reason for the message being queued directly as a Dead Letter Message
-
getMetaData
- Returns:
- metadata metadata related to the message/payload
-
setCauseOfError
- Parameters:
causeOfError- the reason for the message being queued directly as a Dead Letter Message
-
toString
-