io.fluxcapacitor.javaclient.eventsourcing.NoSnapshotTrigger 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 io.fluxcapacitor.javaclient.common.Message;
import java.util.List;
public enum NoSnapshotTrigger implements SnapshotTrigger {
INSTANCE;
@Override
public boolean shouldCreateSnapshot(Aggregate> aggregate, List newEvents) {
return false;
}
}