All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.fluxcapacitor.javaclient.persisting.eventsourcing.NoOpSnapshotRepository Maven / Gradle / Ivy

There is a newer version: 0.1015.0
Show newest version
package io.fluxcapacitor.javaclient.persisting.eventsourcing;

import java.util.Optional;

public enum NoOpSnapshotRepository implements SnapshotRepository {
    INSTANCE;

    @Override
    public void storeSnapshot(EventSourcedModel snapshot) {
        //no op
    }

    @Override
    public  Optional> getSnapshot(String aggregateId) {
        return Optional.empty();
    }

    @Override
    public void deleteSnapshot(String aggregateId) {
        //no op
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy