java.lang.Object
java.lang.Enum<NoOpSnapshotStore>
io.fluxcapacitor.javaclient.persisting.eventsourcing.NoOpSnapshotStore
All Implemented Interfaces:
SnapshotStore, Serializable, Comparable<NoOpSnapshotStore>, java.lang.constant.Constable

public enum NoOpSnapshotStore extends Enum<NoOpSnapshotStore> implements SnapshotStore
  • Enum Constant Details

  • Method Details

    • values

      public static NoOpSnapshotStore[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static NoOpSnapshotStore valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • storeSnapshot

      public <T> void storeSnapshot(AggregateRoot<T> snapshot)
      Specified by:
      storeSnapshot in interface SnapshotStore
    • getSnapshot

      public <T> Optional<AggregateRoot<T>> getSnapshot(String aggregateId)
      Specified by:
      getSnapshot in interface SnapshotStore
    • deleteSnapshot

      public void deleteSnapshot(String aggregateId)
      Specified by:
      deleteSnapshot in interface SnapshotStore