Class ResurrectDeadLetterMessage
- java.lang.Object
-
- dk.cloudcreate.essentials.components.foundation.messaging.queue.operations.ResurrectDeadLetterMessage
-
public class ResurrectDeadLetterMessage extends Object
Resurrect a Dead Letter Message for redelivery after the specifieddeliveryDelay
Note this method MUST be called within an existingUnitOfWorkIF usingTransactionalMode.FullyTransactional
Operation also matchesDurableQueuesInterceptor.intercept(ResurrectDeadLetterMessage, InterceptorChain)
-
-
Field Summary
Fields Modifier and Type Field Description QueueEntryIdqueueEntryId
-
Constructor Summary
Constructors Constructor Description ResurrectDeadLetterMessage(QueueEntryId queueEntryId, Duration deliveryDelay)Resurrect a Dead Letter Message for redelivery after the specifieddeliveryDelay
Note this method MUST be called within an existingUnitOfWorkIF usingTransactionalMode.FullyTransactional
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ResurrectDeadLetterMessageBuilderbuilder()Create a new builder that produces a newResurrectDeadLetterMessageinstanceDurationgetDeliveryDelay()QueueEntryIdgetQueueEntryId()voidsetDeliveryDelay(Duration deliveryDelay)StringtoString()voidvalidate()
-
-
-
Field Detail
-
queueEntryId
public final QueueEntryId queueEntryId
-
-
Constructor Detail
-
ResurrectDeadLetterMessage
public ResurrectDeadLetterMessage(QueueEntryId queueEntryId, Duration deliveryDelay)
Resurrect a Dead Letter Message for redelivery after the specifieddeliveryDelay
Note this method MUST be called within an existingUnitOfWorkIF usingTransactionalMode.FullyTransactional- Parameters:
queueEntryId- the unique id of the Dead Letter Message that must we will retry the delivery ofdeliveryDelay- how long will the queue wait until it delivers the message to theDurableQueueConsumer
-
-
Method Detail
-
builder
public static ResurrectDeadLetterMessageBuilder builder()
Create a new builder that produces a newResurrectDeadLetterMessageinstance- Returns:
- a new
ResurrectDeadLetterMessageBuilderinstance
-
getQueueEntryId
public QueueEntryId getQueueEntryId()
- Returns:
- the unique id of the Dead Letter Message that must we will retry the delivery of
-
getDeliveryDelay
public Duration getDeliveryDelay()
- Returns:
- how long will the queue wait until it delivers the message to the
DurableQueueConsumer
-
setDeliveryDelay
public void setDeliveryDelay(Duration deliveryDelay)
- Parameters:
deliveryDelay- how long will the queue wait until it delivers the message to theDurableQueueConsumer
-
validate
public void validate()
-
-