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

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

There is a newer version: 0.1015.0
Show newest version
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
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy