io.fluxcapacitor.javaclient.eventsourcing.NoOpSnapshotRepository Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-client Show documentation
Show all versions of java-client Show documentation
Default Java client library for interfacing with Flux Capacitor.
package io.fluxcapacitor.javaclient.eventsourcing;
import java.util.Optional;
public enum NoOpSnapshotRepository implements SnapshotRepository {
INSTANCE;
@Override
public void storeSnapshot(Aggregate> snapshot) {
//no op
}
@Override
public Optional> getSnapshot(String aggregateId) {
return Optional.empty();
}
@Override
public void deleteSnapshot(String aggregateId) {
//no op
}
}