Class DeleteMessage
- java.lang.Object
-
- dk.cloudcreate.essentials.components.foundation.messaging.queue.operations.DeleteMessage
-
public class DeleteMessage extends Object
Delete a message (Queued or Dead Letter Message)
Note this method MUST be called within an existingUnitOfWorkIF usingTransactionalMode.FullyTransactional
Operation also matchesDurableQueuesInterceptor.intercept(DeleteMessage, InterceptorChain)
-
-
Field Summary
Fields Modifier and Type Field Description QueueEntryIdqueueEntryId
-
Constructor Summary
Constructors Constructor Description DeleteMessage(QueueEntryId queueEntryId)Delete a message (Queued or Dead Letter Message)
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 DeleteMessageBuilderbuilder()Create a new builder that produces a newDeleteMessageinstanceQueueEntryIdgetQueueEntryId()StringtoString()
-
-
-
Field Detail
-
queueEntryId
public final QueueEntryId queueEntryId
-
-
Constructor Detail
-
DeleteMessage
public DeleteMessage(QueueEntryId queueEntryId)
Delete a message (Queued or Dead Letter Message)
Note this method MUST be called within an existingUnitOfWorkIF usingTransactionalMode.FullyTransactional- Parameters:
queueEntryId- the unique id of the Message to delete
-
-
Method Detail
-
builder
public static DeleteMessageBuilder builder()
Create a new builder that produces a newDeleteMessageinstance- Returns:
- a new
DeleteMessageBuilderinstance
-
getQueueEntryId
public QueueEntryId getQueueEntryId()
- Returns:
- the unique id of the Message to delete
-
-