T
- The type of entity to which the message handler will delegate the actual handling of the commandpublic interface CommandMessageHandlingMember<T> extends MessageHandlingMember<T>
Modifier and Type | Method and Description |
---|---|
String |
commandName()
Returns the name of the command that can be handled.
|
boolean |
isFactoryHandler()
Check if this message handler creates a new instance of the entity of type
T to handle this command. |
String |
routingKey()
Returns the property of the command that is to be used as routing key towards this command handler instance.
|
annotationAttributes, canHandle, canHandleType, declaringClass, handle, hasAnnotation, payloadType, priority, unwrap
String commandName()
String routingKey()
boolean isFactoryHandler()
T
to handle this command.
This is for instance the case if the message is handled in the constructor method of the entity.
true
if this handler is also factory for entities, false
otherwise.Copyright © 2010–2020. All rights reserved.