Class RetryMessageBuilder
java.lang.Object
dk.cloudcreate.essentials.components.foundation.messaging.queue.operations.RetryMessageBuilder
Builder for
RetryMessage-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builder anRetryMessageinstance from the builder propertiessetCauseForRetry(Exception causeForRetry) setDeliveryDelay(Duration deliveryDelay) setQueueEntryId(QueueEntryId queueEntryId)
-
Constructor Details
-
RetryMessageBuilder
public RetryMessageBuilder()
-
-
Method Details
-
setQueueEntryId
- Parameters:
queueEntryId- the unique id of the message that must we will retry the delivery of- Returns:
- this builder instance
-
setCauseForRetry
- Parameters:
causeForRetry- the reason why the message delivery has to be retried- Returns:
- this builder instance
-
setDeliveryDelay
- Parameters:
deliveryDelay- how long will the queue wait until it delivers the message to theDurableQueueConsumer- Returns:
- this builder instance
-
build
Builder anRetryMessageinstance from the builder properties- Returns:
- the
RetryMessageinstance
-