public enum NoSnapshotTrigger extends Enum<NoSnapshotTrigger> implements SnapshotTrigger
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
boolean |
shouldCreateSnapshot(Aggregate<?> aggregate,
List<Message> newEvents) |
static NoSnapshotTrigger |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NoSnapshotTrigger[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NoSnapshotTrigger INSTANCE
public static NoSnapshotTrigger[] values()
for (NoSnapshotTrigger c : NoSnapshotTrigger.values()) System.out.println(c);
public static NoSnapshotTrigger 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 boolean shouldCreateSnapshot(Aggregate<?> aggregate, List<Message> newEvents)
shouldCreateSnapshot in interface SnapshotTriggerCopyright © 2019 Flux Capacitor. All rights reserved.