| Package | Description |
|---|---|
| io.serialized.client.aggregate |
| Modifier and Type | Method and Description |
|---|---|
Event<T> |
Event.TypedBuilder.build() |
Event |
Event.RawBuilder.build() |
| Modifier and Type | Method and Description |
|---|---|
List<Event> |
Command.apply(A aggregate) |
List<Event> |
AggregateUpdate.apply(T state) |
List<Event> |
EventBatch.getEvents() |
| Modifier and Type | Method and Description |
|---|---|
T |
EventHandler.handle(T state,
Event<E> e) |
| Modifier and Type | Method and Description |
|---|---|
void |
AggregateClient.append(String aggregateId,
List<Event> events)
Unconditionally append events to an aggregate.
|
void |
AggregateClient.append(String aggregateId,
List<Event> events,
long expectedVersion)
Append events to an aggregate using optimistic concurrency.
|
void |
AggregateClient.append(UUID aggregateId,
List<Event> events)
Unconditionally append events to an aggregate.
|
void |
AggregateClient.append(UUID aggregateId,
List<Event> events,
long expectedVersion)
Append events to an aggregate using optimistic concurrency.
|
T |
StateBuilder.buildState(List<? extends Event> events) |
void |
AggregateClient.save(String aggregateId,
List<Event> events)
Save events as a new aggregate.
|
void |
AggregateClient.save(UUID aggregateId,
List<Event> events)
Save events as a new aggregate.
|
| Constructor and Description |
|---|
EventBatch(List<Event> events,
Long expectedVersion) |
Copyright © 2019. All rights reserved.