Class CommandMessageHandlerInterceptorChain
java.lang.Object
org.axonframework.messaging.commandhandling.interception.CommandMessageHandlerInterceptorChain
- All Implemented Interfaces:
MessageHandlerInterceptorChain<CommandMessage>
@Internal
public class CommandMessageHandlerInterceptorChain
extends Object
implements MessageHandlerInterceptorChain<CommandMessage>
- Since:
- 5.0.0
- Author:
- Allard Buijze, Simon Zambrovski, Steven van Beelen
-
Constructor Summary
ConstructorsConstructorDescriptionCommandMessageHandlerInterceptorChain(List<MessageHandlerInterceptor<? super CommandMessage>> interceptors, CommandHandler commandHandler) Constructs a newCommandMessageHandlerInterceptorChainwith a list ofinterceptorsand ancommandHandler. -
Method Summary
Modifier and TypeMethodDescriptionproceed(CommandMessage command, ProcessingContext context) Signals this interceptor chain to continue processing themessage.
-
Constructor Details
-
CommandMessageHandlerInterceptorChain
public CommandMessageHandlerInterceptorChain(@Nonnull List<MessageHandlerInterceptor<? super CommandMessage>> interceptors, @Nonnull CommandHandler commandHandler) Constructs a newCommandMessageHandlerInterceptorChainwith a list ofinterceptorsand ancommandHandler.- Parameters:
interceptors- The list of handler interceptors that are part of this chain.commandHandler- The command handler to be invoked at the end of the interceptor chain.
-
-
Method Details
-
proceed
@Nonnull public MessageStream<?> proceed(@Nonnull CommandMessage command, @Nonnull ProcessingContext context) Description copied from interface:MessageHandlerInterceptorChainSignals this interceptor chain to continue processing themessage.- Specified by:
proceedin interfaceMessageHandlerInterceptorChain<CommandMessage>- Parameters:
command- The message to pass down the chain.context- The active processing context the givenmessageis being processed in.- Returns:
- A
MessageStreamcontaining the result of processing the givenmessage.
-