Interface QueryHandlingMember<T>
- Type Parameters:
T- The type of entity to which the message handler will delegate the actual handling of the message.
- All Superinterfaces:
MessageHandlingMember<T>
Interface indicating that a
MessageHandlingMember is capable of handling specific
QueryMessages.- Since:
- 3.1.0
- Author:
- Allard Buijze
-
Method Summary
Modifier and TypeMethodDescriptionReturns the name of the query the handler can handle.Returns the return type declared by the handlerMethods inherited from interface org.axonframework.messaging.core.annotation.MessageHandlingMember
attribute, canHandle, canHandleMessageType, canHandleType, declaringClass, handle, handleSync, payloadType, priority, signature, unwrap
-
Method Details
-
queryName
String queryName()Returns the name of the query the handler can handle.Might be an empty
Stringwhen undefined by this handling member, in which case components gatheringQueryHandlingMembersshould fall back to other mechanisms to define the name of a handling member.- Returns:
- The name of the query the handler can handle.
-
resultType
Type resultType()Returns the return type declared by the handler- Returns:
- The return type declared by the handler.
-