public class SnapshotManagerImpl extends Object implements SnapshotManager
| Constructor and Description |
|---|
SnapshotManagerImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addStrategy(SnapshotStrategy snapshotStrategy) |
Optional<Snapshot> |
possiblySnapshot(Aggregate aggregate,
Optional<Int128> snapshotVersion,
List<EventWithMetadata> oldEvents,
List<Event> newEvents) |
Aggregate |
recreateFromSnapshot(Class<?> clasz,
Snapshot snapshot,
MissingApplyEventMethodStrategy missingApplyEventMethodStrategy) |
public void addStrategy(SnapshotStrategy snapshotStrategy)
public Optional<Snapshot> possiblySnapshot(Aggregate aggregate, Optional<Int128> snapshotVersion, List<EventWithMetadata> oldEvents, List<Event> newEvents)
possiblySnapshot in interface SnapshotManagerpublic Aggregate recreateFromSnapshot(Class<?> clasz, Snapshot snapshot, MissingApplyEventMethodStrategy missingApplyEventMethodStrategy)
recreateFromSnapshot in interface SnapshotManagerCopyright © 2021. All rights reserved.