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>

@Internal public interface QueryHandlingMember<T> extends MessageHandlingMember<T>
Interface indicating that a MessageHandlingMember is capable of handling specific QueryMessages.
Since:
3.1.0
Author:
Allard Buijze
  • Method Details

    • queryName

      String queryName()
      Returns the name of the query the handler can handle.

      Might be an empty String when undefined by this handling member, in which case components gathering QueryHandlingMembers should 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.