outgoingEvents

public ImmutableSet<EventClass> outgoingEvents()

Obtains types of events that are going to be posted to EventBus as the result of handling messages dispatched to aggregates of this class.

This includes:

  1. Events generated in response to commands.
  2. Events generated as reaction to incoming events.
  3. Rejections that may be thrown if incoming commands cannot be handled.
  4. Events imported by the aggregate.

Although technically imported events are not "produced" by the aggregates, they end up in the same EventBus and have the same behaviour as the ones emitted by the aggregates.