Class ResurrectDeadLetterMessage
java.lang.Object
dk.cloudcreate.essentials.components.foundation.messaging.queue.operations.ResurrectDeadLetterMessage
Resurrect a Dead Letter Message for redelivery after the specified
Note this method MUST be called within an existing
Operation also matches
deliveryDelayNote this method MUST be called within an existing
UnitOfWork IF
using TransactionalMode.FullyTransactionalOperation also matches
DurableQueuesInterceptor.intercept(ResurrectDeadLetterMessage, InterceptorChain)-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionResurrectDeadLetterMessage(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
Modifier and TypeMethodDescriptionbuilder()Create a new builder that produces a newResurrectDeadLetterMessageinstancevoidsetDeliveryDelay(Duration deliveryDelay) toString()voidvalidate()
-
Field Details
-
queueEntryId
-
-
Constructor Details
-
ResurrectDeadLetterMessage
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 Details
-
builder
Create a new builder that produces a newResurrectDeadLetterMessageinstance- Returns:
- a new
ResurrectDeadLetterMessageBuilderinstance
-
getQueueEntryId
- Returns:
- the unique id of the Dead Letter Message that must we will retry the delivery of
-
getDeliveryDelay
- Returns:
- how long will the queue wait until it delivers the message to the
DurableQueueConsumer
-
setDeliveryDelay
- Parameters:
deliveryDelay- how long will the queue wait until it delivers the message to theDurableQueueConsumer
-
toString
-
validate
public void validate()
-