Class QueryMessageHandlerInterceptorChain
java.lang.Object
org.axonframework.messaging.queryhandling.interception.QueryMessageHandlerInterceptorChain
- All Implemented Interfaces:
MessageHandlerInterceptorChain<QueryMessage>
@Internal
public class QueryMessageHandlerInterceptorChain
extends Object
implements MessageHandlerInterceptorChain<QueryMessage>
- Since:
- 5.0.0
- Author:
- Allard Buijze, Simon Zambrovski, Steven van Beelen
-
Constructor Summary
ConstructorsConstructorDescriptionQueryMessageHandlerInterceptorChain(List<MessageHandlerInterceptor<? super QueryMessage>> interceptors, QueryHandler queryHandler) Constructs a newQueryMessageHandlerInterceptorChainwith a list ofinterceptionand anqueryHandler. -
Method Summary
Modifier and TypeMethodDescriptionproceed(QueryMessage query, ProcessingContext context) Signals this interceptor chain to continue processing themessage.
-
Constructor Details
-
QueryMessageHandlerInterceptorChain
public QueryMessageHandlerInterceptorChain(@Nonnull List<MessageHandlerInterceptor<? super QueryMessage>> interceptors, @Nonnull QueryHandler queryHandler) Constructs a newQueryMessageHandlerInterceptorChainwith a list ofinterceptionand anqueryHandler.- Parameters:
interceptors- The list of handler interception that are part of this chain.queryHandler- The query handler to be invoked at the end of the interceptor chain.
-
-
Method Details
-
proceed
@Nonnull public MessageStream<?> proceed(@Nonnull QueryMessage query, @Nonnull ProcessingContext context) Description copied from interface:MessageHandlerInterceptorChainSignals this interceptor chain to continue processing themessage.- Specified by:
proceedin interfaceMessageHandlerInterceptorChain<QueryMessage>- Parameters:
query- 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.
-