public interface WhenAggregateEventPublisher
Modifier and Type | Method and Description |
---|---|
FixtureExecutionResult |
publishes(Object event)
Register the given
event to be published on behalf of an aggregate. |
FixtureExecutionResult |
publishes(Object event,
Map<String,?> metaData)
Register the given
event to be published on behalf of an aggregate, with given additional metaData . |
FixtureExecutionResult publishes(Object event)
event
to be published on behalf of an aggregate. Activity caused by this event
on the CommandBus and EventBus is monitored and can be checked in the FixtureExecutionResult.event
- The event published by the aggregateFixtureExecutionResult publishes(Object event, Map<String,?> metaData)
event
to be published on behalf of an aggregate, with given additional metaData
.
Activity caused by this event on the CommandBus and EventBus is monitored and can be checked
in the FixtureExecutionResult.event
- The event published by the aggregatemetaData
- The meta data to attach to the eventCopyright © 2010–2023. All rights reserved.