Class DefaultSnapshotRepository
- java.lang.Object
-
- io.fluxcapacitor.javaclient.persisting.eventsourcing.DefaultSnapshotRepository
-
- All Implemented Interfaces:
SnapshotRepository
public class DefaultSnapshotRepository extends Object implements SnapshotRepository
-
-
Constructor Summary
Constructors Constructor Description DefaultSnapshotRepository()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeleteSnapshot(String aggregateId)<T> Optional<EventSourcedModel<T>>getSnapshot(String aggregateId)protected StringsnapshotKey(String aggregateId)voidstoreSnapshot(EventSourcedModel<?> snapshot)
-
-
-
Method Detail
-
storeSnapshot
public void storeSnapshot(EventSourcedModel<?> snapshot)
- Specified by:
storeSnapshotin interfaceSnapshotRepository
-
getSnapshot
public <T> Optional<EventSourcedModel<T>> getSnapshot(String aggregateId)
- Specified by:
getSnapshotin interfaceSnapshotRepository
-
deleteSnapshot
public void deleteSnapshot(String aggregateId)
- Specified by:
deleteSnapshotin interfaceSnapshotRepository
-
-