io.fluxcapacitor.javaclient.persisting.eventsourcing.SnapshotTrigger 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.persisting.eventsourcing;
import io.fluxcapacitor.javaclient.common.serialization.DeserializingMessage;
import java.util.List;
@FunctionalInterface
public interface SnapshotTrigger {
boolean shouldCreateSnapshot(EventSourcedModel model, List newEvents);
}