Interface ForwardingCommandMessageHandlingMember<T>
- Type Parameters:
T- The type of entity to which the message handler will delegate the actual handling of the command
- All Superinterfaces:
CommandMessageHandlingMember<T>,MessageHandlingMember<T>
- All Known Implementing Classes:
ChildForwardingCommandMessageHandlingMember
Interface describing a message handler capable of forwarding a specific command.
- Since:
- 4.6.0
- Author:
- Somrak Monpengpinij
-
Method Summary
Modifier and TypeMethodDescriptionbooleancanForward(CommandMessage<?> message, T target) Check if this handler is in a state where it can currently accept the command.Methods inherited from interface org.axonframework.commandhandling.CommandMessageHandlingMember
commandName, isFactoryHandler, routingKeyMethods inherited from interface org.axonframework.messaging.annotation.MessageHandlingMember
annotationAttributes, attribute, canHandle, canHandleMessageType, canHandleType, declaringClass, handle, hasAnnotation, payloadType, priority, signature, unwrap
-
Method Details
-
canForward
Check if this handler is in a state where it can currently accept the command.- Parameters:
message- The message that is to be forwardedtarget- The target to forward the command message- Returns:
trueif this handler can forward command to target entity,falseotherwise.
-