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. not normal Queued Messages) for the given Queue
Operation also matchedDurableQueuesInterceptor.intercept(GetDeadLetterMessages, InterceptorChain)Builder forGetDeadLetterMessagesQuery the next Queued Message (i.e. not including Dead Letter Messages) that's ready to be delivered to aDurableQueueConsumer
Note this method MUST be called within an existingUnitOfWorkIF usingTransactionalMode.FullyTransactional
Operation also matchedDurableQueuesInterceptor.intercept(GetNextMessageReadyForDelivery, InterceptorChain)Builder forGetNextMessageReadyForDeliveryGet a queued message that is NOT marked as aQueuedMessage.isDeadLetterMessage()
Operation also matchesDurableQueuesInterceptor.intercept(GetQueuedMessage, InterceptorChain)Builder forGetQueuedMessageGet the total number of (non-dead-letter) messages queued and number of queued dead-letter Messages for the given queue
Operation also matchedDurableQueuesInterceptor.intercept(GetQueuedMessageCountsFor, InterceptorChain)Builder forGetQueuedMessageCountsForQuery Queued Messages (i.e. not including Dead Letter Messages) for the given Queue
Operation also matchedDurableQueuesInterceptor.intercept(GetQueuedMessages, InterceptorChain)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. not including Dead Letter Messages) for the given queue
Operation also matchedDurableQueuesInterceptor.intercept(GetTotalMessagesQueuedFor, InterceptorChain)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