Class DurableQueuesMicrometerInterceptor
java.lang.Object
dk.cloudcreate.essentials.components.foundation.messaging.queue.micrometer.DurableQueuesMicrometerInterceptor
- All Implemented Interfaces:
DurableQueuesInterceptor,dk.cloudcreate.essentials.shared.interceptor.Interceptor
public final class DurableQueuesMicrometerInterceptor
extends Object
implements DurableQueuesInterceptor
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDurableQueuesMicrometerInterceptor(io.micrometer.core.instrument.MeterRegistry meterRegistry, String moduleTag) -
Method Summary
Modifier and TypeMethodDescriptionbooleanintercept(AcknowledgeMessageAsHandled operation, dk.cloudcreate.essentials.shared.interceptor.InterceptorChain<AcknowledgeMessageAsHandled, Boolean, DurableQueuesInterceptor> interceptorChain) InterceptAcknowledgeMessageAsHandledcallsbooleanintercept(DeleteMessage operation, dk.cloudcreate.essentials.shared.interceptor.InterceptorChain<DeleteMessage, Boolean, DurableQueuesInterceptor> interceptorChain) InterceptDeleteMessagecallsintercept(MarkAsDeadLetterMessage operation, dk.cloudcreate.essentials.shared.interceptor.InterceptorChain<MarkAsDeadLetterMessage, Optional<QueuedMessage>, DurableQueuesInterceptor> interceptorChain) InterceptMarkAsDeadLetterMessagecallsintercept(QueueMessageAsDeadLetterMessage operation, dk.cloudcreate.essentials.shared.interceptor.InterceptorChain<QueueMessageAsDeadLetterMessage, QueueEntryId, DurableQueuesInterceptor> interceptorChain) InterceptQueueMessageAsDeadLetterMessagecallsintercept(QueueMessage operation, dk.cloudcreate.essentials.shared.interceptor.InterceptorChain<QueueMessage, QueueEntryId, DurableQueuesInterceptor> interceptorChain) InterceptQueueMessagecallsintercept(QueueMessages operation, dk.cloudcreate.essentials.shared.interceptor.InterceptorChain<QueueMessages, List<QueueEntryId>, DurableQueuesInterceptor> interceptorChain) InterceptQueueMessagescallsintercept(ResurrectDeadLetterMessage operation, dk.cloudcreate.essentials.shared.interceptor.InterceptorChain<ResurrectDeadLetterMessage, Optional<QueuedMessage>, DurableQueuesInterceptor> interceptorChain) InterceptResurrectDeadLetterMessagecallsintercept(RetryMessage operation, dk.cloudcreate.essentials.shared.interceptor.InterceptorChain<RetryMessage, Optional<QueuedMessage>, DurableQueuesInterceptor> interceptorChain) InterceptRetryMessagecallsvoidsetDurableQueues(DurableQueues durableQueues) This method will be called by theDurableQueuesinstance that theDurableQueuesInterceptoris added to
-
Field Details
-
PROCESSED_QUEUED_MESSAGES_COUNTER_NAME
- See Also:
-
PROCESSED_QUEUED_MESSAGES_RETRIES_COUNTER_NAME
- See Also:
-
PROCESSED_DEAD_LETTER_MESSAGES_COUNTER_NAME
- See Also:
-
QUEUE_NAME_TAG_NAME
- See Also:
-
MODULE_TAG_NAME
- See Also:
-
-
Constructor Details
-
DurableQueuesMicrometerInterceptor
public DurableQueuesMicrometerInterceptor(io.micrometer.core.instrument.MeterRegistry meterRegistry, String moduleTag)
-
-
Method Details
-
setDurableQueues
Description copied from interface:DurableQueuesInterceptorThis method will be called by theDurableQueuesinstance that theDurableQueuesInterceptoris added to- Specified by:
setDurableQueuesin interfaceDurableQueuesInterceptor- Parameters:
durableQueues- the durable queue instance that this interceptor is added to
-