public enum NoOpSnapshotRepository extends Enum<NoOpSnapshotRepository> implements SnapshotRepository
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteSnapshot(String aggregateId) |
<T> Optional<Aggregate<T>> |
getSnapshot(String aggregateId) |
void |
storeSnapshot(Aggregate<?> snapshot) |
static NoOpSnapshotRepository |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NoOpSnapshotRepository[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NoOpSnapshotRepository INSTANCE
public static NoOpSnapshotRepository[] values()
for (NoOpSnapshotRepository c : NoOpSnapshotRepository.values()) System.out.println(c);
public static NoOpSnapshotRepository valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic void storeSnapshot(Aggregate<?> snapshot)
storeSnapshot in interface SnapshotRepositorypublic <T> Optional<Aggregate<T>> getSnapshot(String aggregateId)
getSnapshot in interface SnapshotRepositorypublic void deleteSnapshot(String aggregateId)
deleteSnapshot in interface SnapshotRepositoryCopyright © 2019 Flux Capacitor. All rights reserved.