| Package | Description |
|---|---|
| com.networknt.eventuate.common | |
| com.networknt.eventuate.common.sync |
| Modifier and Type | Method and Description |
|---|---|
EntityWithIdAndVersion<T> |
EntityWithMetadata.toEntityWithIdAndVersion() |
| Modifier and Type | Method and Description |
|---|---|
<A extends CommandProcessingAggregate<A,CT>,CT extends Command> |
EventHandlerContext.save(Class<A> entityClass,
CT command,
Optional<String> entityId)
Creates an aggregate in response to an event
|
CompletableFuture<EntityWithIdAndVersion<T>> |
AggregateRepository.save(CT cmd)
Create a new Aggregate by processing a command and persisting the events
|
CompletableFuture<EntityWithIdAndVersion<T>> |
AggregateRepository.save(CT cmd,
Optional<SaveOptions> saveOptions)
Create a new Aggregate by processing a command and persisting the events
|
<A extends CommandProcessingAggregate<A,CT>,CT extends Command> |
EventHandlerContext.update(Class<A> entityClass,
String entityId,
CT command)
Updates an aggregate in response to an event
|
CompletableFuture<EntityWithIdAndVersion<T>> |
AggregateRepository.update(String entityId,
CT cmd)
Update the specified aggregate by processing a command and saving events
|
CompletableFuture<EntityWithIdAndVersion<T>> |
AggregateRepository.update(String entityId,
CT cmd,
Optional<UpdateOptions> updateOptions)
Update the specified aggregate by processing a command and saving events
|
<A extends CommandProcessingAggregate<A,CT>,CT extends Command> |
EventHandlerContext.updateWithProvidedCommand(Class<A> entityClass,
String entityId,
Function<A,Optional<CT>> commandProvider)
Updates an aggregate in response to an event
|
CompletableFuture<EntityWithIdAndVersion<T>> |
AggregateRepository.updateWithProvidedCommand(String entityId,
Function<T,Optional<CT>> commandProvider,
Optional<UpdateOptions> updateOptions)
Update the specified aggregate by processing a command and saving events
|
| Modifier and Type | Method and Description |
|---|---|
EntityWithIdAndVersion<T> |
AggregateRepository.save(CT cmd)
Create a new Aggregate by processing a command and persisting the events
|
EntityWithIdAndVersion<T> |
AggregateRepository.save(CT cmd,
Optional<SaveOptions> saveOptions)
Create a new Aggregate by processing a command and persisting the events
|
EntityWithIdAndVersion<T> |
AggregateRepository.update(String entityId,
CT cmd)
Update the specified aggregate by processing a command and saving events
|
EntityWithIdAndVersion<T> |
AggregateRepository.update(String entityId,
CT cmd,
Optional<UpdateOptions> updateOptions)
Update the specified aggregate by processing a command and saving events
|
EntityWithIdAndVersion<T> |
AggregateRepository.updateWithProvidedCommand(String entityId,
Function<T,Optional<CT>> commandProvider,
Optional<UpdateOptions> updateOptions)
Update the specified aggregate by processing a command and saving events
|
| Modifier and Type | Method and Description |
|---|---|
<A extends CommandProcessingAggregate<A,CT>,CT extends Command> |
EventHandlerContext.save(Class<A> entityClass,
CT command,
Optional<String> entityId)
Creates an aggregate in response to an event
|
<A extends CommandProcessingAggregate<A,CT>,CT extends Command> |
EventHandlerContext.update(Class<A> entityClass,
String entityId,
CT command)
Updates an aggregate in response to an event
|
<A extends CommandProcessingAggregate<A,CT>,CT extends Command> |
EventHandlerContext.updateWithProvidedCommand(Class<A> entityClass,
String entityId,
Function<A,Optional<CT>> commandProvider)
Updates an aggregate in response to an event
|
Copyright © 2021. All rights reserved.