This content needs improvements
  • Design considerations needs more details
  • Usage section need detailed examples
  • Reference section need more links to samples, source code, etc.
You are welcome to edit this page. You can search for and contribute to previous discussions about this page or start a new one .

Query Messages

This document provides information about the design, implementation, and intended usage of query messages in Axon Framework.

Design considerations

Queries are specific type of messages, used to request information. To distinguish them from other message types, the framework must provide a dedicates objects.

Name

Response type

Implementation

In Axon Framework, a query message is an immutable, serializable Java object implementing the QueryMessage interface.

Query messaging class diagram
Figure 1. Query messaging class diagram

With queries the communication is always bidirectional, and the response is an object that implements QueryResponseMessage.

Usage

Reference

Javadoc
  •  

Source code
  •