| Package | Description |
|---|---|
| com.networknt.eventuate.common | |
| com.networknt.eventuate.common.sync |
| Modifier and Type | Class and Description |
|---|---|
class |
AggregateRepository<T extends CommandProcessingAggregate<T,CT>,CT extends Command>
A convenience class, with a reactive-style API that provides a simplified interface for creating and updating aggregates.
|
interface |
AggregateRepositoryInterceptor<T extends CommandProcessingAggregate<T,CT>,CT extends Command> |
interface |
CommandProcessingAggregate<T extends CommandProcessingAggregate,CT extends Command>
An aggregate that processes commands by returning (state changing) events
|
class |
DefaultAggregateRepositoryInterceptor<T extends CommandProcessingAggregate<T,CT>,CT extends Command> |
class |
ReflectiveMutableCommandProcessingAggregate<T extends ReflectiveMutableCommandProcessingAggregate<T,CT>,CT extends Command>
A mutable aggregate that uses reflection to process commands and apply 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
|
| Modifier and Type | Method and Description |
|---|---|
Command |
MissingProcessMethodException.getCommand() |
| Constructor and Description |
|---|
MissingProcessMethodException(Throwable e,
Command command) |
| Modifier and Type | Class and Description |
|---|---|
class |
AggregateRepository<T extends CommandProcessingAggregate<T,CT>,CT extends Command>
A convenience class, with a synchronous-style API that provides a simplified interface for creating and updating aggregates.
|
| 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.