Interface EntityCommandHandlerInterceptorChain<E>
- Type Parameters:
E- the type of the entity modeled by this interface
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Chain allowing an
EntityCommandHandlerInterceptor to proceed dispatching a CommandMessage to an
entity, either to the next interceptor in the chain, or to the entity's own command handlers.
Unlike the generic MessageHandlerInterceptorChain, this chain threads the
entity instance through proceed(CommandMessage, Object, ProcessingContext) rather than capturing it by
closure.
- Since:
- 5.3.2
- Author:
- Steven van Beelen
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionproceed(CommandMessage command, @Nullable E entity, ProcessingContext context) Signals this interceptor chain to continue dispatching thecommand.
-
Method Details
-
proceed
Signals this interceptor chain to continue dispatching thecommand.- Parameters:
command- the command to pass down the chainentity- the entity instance thecommandtargets, ornullwhen thecommandis a creational command for which no entity instance exists yetcontext- theProcessingContextthecommandis processed in- Returns:
- a
MessageStreamcontaining the result of processing the givencommand
-