public class DefaultSnapshotRepository extends Object implements SnapshotRepository
| Constructor and Description |
|---|
DefaultSnapshotRepository() |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteSnapshot(String aggregateId) |
<T> Optional<Aggregate<T>> |
getSnapshot(String aggregateId) |
protected String |
snapshotKey(String aggregateId) |
void |
storeSnapshot(Aggregate<?> snapshot) |
public void storeSnapshot(Aggregate<?> snapshot)
storeSnapshot in interface SnapshotRepositorypublic <T> Optional<Aggregate<T>> getSnapshot(String aggregateId)
getSnapshot in interface SnapshotRepositorypublic void deleteSnapshot(String aggregateId)
deleteSnapshot in interface SnapshotRepositoryCopyright © 2019 Flux Capacitor. All rights reserved.