Class AcknowledgeMessageAsHandled
- java.lang.Object
-
- dk.cloudcreate.essentials.components.foundation.messaging.queue.operations.AcknowledgeMessageAsHandled
-
public class AcknowledgeMessageAsHandled extends Object
Mark the message as acknowledged - this operation also deletes the messages from the Queue
Note this method MUST be called within an existingUnitOfWorkIF usingTransactionalMode.FullyTransactional
Operation also matchesDurableQueuesInterceptor.intercept(AcknowledgeMessageAsHandled, InterceptorChain)
-
-
Field Summary
Fields Modifier and Type Field Description QueueEntryIdqueueEntryId
-
Constructor Summary
Constructors Constructor Description AcknowledgeMessageAsHandled(QueueEntryId queueEntryId)Mark the message as acknowledged - this operation deleted the messages from the Queue
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 AcknowledgeMessageAsHandledBuilderbuilder()Create a new builder that produces a newAcknowledgeMessageAsHandledinstanceQueueEntryIdgetQueueEntryId()StringtoString()
-
-
-
Field Detail
-
queueEntryId
public final QueueEntryId queueEntryId
-
-
Constructor Detail
-
AcknowledgeMessageAsHandled
public AcknowledgeMessageAsHandled(QueueEntryId queueEntryId)
Mark the message as acknowledged - this operation deleted the messages from the Queue
Note this method MUST be called within an existingUnitOfWorkIF usingTransactionalMode.FullyTransactional- Parameters:
queueEntryId- the unique id of the Message to acknowledge
-
-
Method Detail
-
builder
public static AcknowledgeMessageAsHandledBuilder builder()
Create a new builder that produces a newAcknowledgeMessageAsHandledinstance- Returns:
- a new
AcknowledgeMessageAsHandledBuilderinstance
-
getQueueEntryId
public QueueEntryId getQueueEntryId()
- Returns:
- the unique id of the Message to acknowledge
-
-