Class MarkAsDeadLetterMessageBuilder
java.lang.Object
dk.cloudcreate.essentials.components.foundation.messaging.queue.operations.MarkAsDeadLetterMessageBuilder
Builder for
MarkAsDeadLetterMessage-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builder anMarkAsDeadLetterMessageinstance from the builder propertiessetCauseForBeingMarkedAsDeadLetter(Exception causeForBeingMarkedAsDeadLetter) setQueueEntryId(QueueEntryId queueEntryId)
-
Constructor Details
-
MarkAsDeadLetterMessageBuilder
public MarkAsDeadLetterMessageBuilder()
-
-
Method Details
-
setQueueEntryId
- Parameters:
queueEntryId- the unique id of the message that must be marked as a Dead Letter Message- Returns:
- this builder instance
-
setCauseForBeingMarkedAsDeadLetter
public MarkAsDeadLetterMessageBuilder setCauseForBeingMarkedAsDeadLetter(Exception causeForBeingMarkedAsDeadLetter) - Parameters:
causeForBeingMarkedAsDeadLetter- the reason for the message being marked as a Dead Letter Message- Returns:
- this builder instance
-
build
Builder anMarkAsDeadLetterMessageinstance from the builder properties- Returns:
- the
MarkAsDeadLetterMessageinstance
-