This content needs improvements
  • Design considerations needs details about event messages characteristics
  • Usage section needs 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 .

Event Messages

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

Design considerations

Events are specific type of messages, used to notify something has happened. To distinguish them from other message types, the framework must provide a dedicates objects.

In addition to the generic messages, event messages have the following characteristics:

Timestamp

Implementation

In Axon Framework, an event message is an immutable, serializable Java object implementing the EventMessage interface.

Event messaging class diagram
Figure 1. Event messaging class diagram

Event don’t expect responses so the communication is always unidirectional.

Usage

Reference

Javadoc
  •  

Source code
  •