Interface ModifiableAggregateRoot.CommitHandler
- Enclosing class:
ModifiableAggregateRoot<T>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
Modifier and TypeMethodDescriptionhandle(Entity<?> model, List<AppliedEvent> unpublished, Entity<?> beforeUpdate) Commits the aggregate state and any unpublished events.
-
Method Details
-
handle
CompletableFuture<Void> handle(Entity<?> model, List<AppliedEvent> unpublished, Entity<?> beforeUpdate) Commits the aggregate state and any unpublished events.- Parameters:
model- aggregate state after the changeunpublished- events that must be committedbeforeUpdate- aggregate state before the change- Returns:
- future that completes when all commit work has finished
-