Package org.springframework.integration.handler.advice
@NullMarked
package org.springframework.integration.handler.advice
Provides classes that are used to advise
MessageHandlers with
cross-cutting concerns.-
ClassDescriptionThe base
HandleMessageAdvicefor advices which can be applied only for theMessageHandler.handleMessage(Message).Base class forMessageHandleradvice classes.Called by subclasses inAbstractRequestHandlerAdvice.doInvoke(org.springframework.integration.handler.advice.AbstractRequestHandlerAdvice.ExecutionCallback, java.lang.Object, org.springframework.messaging.Message<?>)toproceed()the invocation.TheAbstractRequestHandlerAdviceimplementation for cachingAbstractReplyProducingMessageHandler.RequestHandler#handleRequestMessage(Message)results.AnAbstractRequestHandlerAdviceimplementation to store and reset a value into/from some context (e.g.ARecoveryCallbackthat sends the final throwable as anErrorMessageafter retry exhaustion.Used to adviseMessageHandlers.The markerMethodInterceptorinterface extension to distinguish advices for some reason.AHandleMessageAdviceimplementation with a plain delegation to the providedMethodInterceptor.TheMethodInterceptorimplementation for the Idempotent Receiver E.I.TheAbstractRequestHandlerAdviceto ensure exclusive access to theAbstractReplyProducingMessageHandler.RequestHandler#handleRequestMessage(Message)calls based on thelockKeyfrom message.AnAbstractRequestHandlerAdviceextension for a rate limiting to service method calls.AMessagingExceptionwrapper for theRequestNotPermittedwith therequestMessageandtargetcontext.AMethodInterceptorfor message handlers producing aMonoas a payload for reply.A circuit breaker that stops calling a failing service after threshold failures, until halfOpenAfter milliseconds has elapsed.An exception thrown when the circuit breaker is in an open state.TheAbstractRequestHandlerAdviceimplementation for retrying the targetMessageHandlerexecution.