Package org.axonframework.messaging.core
Interface MessageDispatchInterceptorChain<M extends Message>
- Type Parameters:
M- The type ofMessageintercepted by this chain.
- All Known Implementing Classes:
DefaultMessageDispatchInterceptorChain
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
An interceptor chain that manages the flow of a
Message of type M through a chain of
interceptors.
Interceptors may continue processing via this chain by calling the proceed(Message, ProcessingContext)
method. Alternatively, they can block processing by returning without calling this method.
- Since:
- 5.0.0
- Author:
- Allard Buijze, Steven van Beelen, Mitchell Herrijgers, Simon Zambrovski
-
Method Summary
Modifier and TypeMethodDescriptionproceed(M message, ProcessingContext context) Signals this interceptor chain to continue processing themessage.
-
Method Details
-
proceed
Signals this interceptor chain to continue processing themessage.- Parameters:
message- The message to pass down the chain.context- The active processing context, if any. Can be used to (e.g.) validate correlation data.- Returns:
- A
MessageStreamcontaining the result of processing the givenmessage.
-