Package dk.cloudcreate.essentials.components.foundation.messaging.queue.operations
package dk.cloudcreate.essentials.components.foundation.messaging.queue.operations
-
ClassesClassDescriptionMark 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)Builder forAcknowledgeMessageAsHandledStart an asynchronous message consumer.
Note: There can only be oneDurableQueueConsumerperQueueNameperDurableQueuesinstance Operation also matchesDurableQueuesInterceptor.intercept(ConsumeFromQueue, InterceptorChain)Builder forConsumeFromQueueDelete a message (Queued or Dead Letter Message)
Note this method MUST be called within an existingUnitOfWorkIF usingTransactionalMode.FullyTransactional
Operation also matchesDurableQueuesInterceptor.intercept(DeleteMessage, InterceptorChain)Builder forDeleteMessageGet a queued message that's marked as aQueuedMessage.isDeadLetterMessage()
Operation also matchesDurableQueuesInterceptor.intercept(GetDeadLetterMessage, InterceptorChain)Builder forGetDeadLetterMessageQuery Dead Letter Messages (i.e.Builder forGetDeadLetterMessagesQuery the next Queued Message (i.e.Builder forGetNextMessageReadyForDeliveryGet a queued message that is NOT marked as aQueuedMessage.isDeadLetterMessage()
Operation also matchesDurableQueuesInterceptor.intercept(GetQueuedMessage, InterceptorChain)Builder forGetQueuedMessageQuery Queued Messages (i.e.Builder forGetQueuedMessagesGet the total number of dead-letter-messages/poison-messages queued for the given queue
Operation also matchedDurableQueuesInterceptor.intercept(GetTotalDeadLetterMessagesQueuedFor, InterceptorChain)Builder forGetTotalDeadLetterMessagesQueuedForGet the total number of messages queued (i.e.Builder forGetTotalMessagesQueuedForMark an already Queued Message as a Dead Letter Message (or Poison Message).
Dead Letter Messages won't be delivered to anyDurableQueueConsumer(called by theDurableQueueConsumer)
To deliver a Dead Letter Message you must first resurrect the message usingDurableQueues.resurrectDeadLetterMessage(QueueEntryId, Duration)
Note this method MUST be called within an existingUnitOfWorkIF usingTransactionalMode.FullyTransactional
Operation also matchesDurableQueuesInterceptor.intercept(MarkAsDeadLetterMessage, InterceptorChain)Builder forMarkAsDeadLetterMessageDelete all messages (Queued or Dead letter Messages) in the given queue
Operation also matchesDurableQueuesInterceptor.intercept(PurgeQueue, InterceptorChain)Builder forPurgeQueueQueue a message for asynchronous delivery optional delay to aDurableQueueConsumer
Note this method MUST be called within an existingUnitOfWorkIF usingTransactionalMode.FullyTransactional
Operation also matchesDurableQueuesInterceptor.intercept(QueueMessage, InterceptorChain)Queue the message directly as a Dead Letter Message.Builder forQueueMessageAsDeadLetterMessageBuilder forQueueMessageQueue multiple messages to the same queue.Builder forQueueMessagesResurrect 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)Builder forResurrectDeadLetterMessageSchedule the message for redelivery after the specifieddeliveryDelay(called by theDurableQueueConsumer)
Note this method MUST be called within an existingUnitOfWorkIF usingTransactionalMode.FullyTransactional
Operation also matchesDurableQueuesInterceptor.intercept(RetryMessage, InterceptorChain)Builder forRetryMessageStop an asynchronous message consumer.
Is initiated whenDurableQueueConsumer.cancel()is called Operation also matchesDurableQueuesInterceptor.intercept(StopConsumingFromQueue, InterceptorChain)Builder forStopConsumingFromQueue