Package org.axonframework.eventsourcing
Enum Class NoSnapshotTriggerDefinition
java.lang.Object
java.lang.Enum<NoSnapshotTriggerDefinition>
org.axonframework.eventsourcing.NoSnapshotTriggerDefinition
- All Implemented Interfaces:
Serializable,Comparable<NoSnapshotTriggerDefinition>,Constable,SnapshotTriggerDefinition
public enum NoSnapshotTriggerDefinition
extends Enum<NoSnapshotTriggerDefinition>
implements SnapshotTriggerDefinition
Implementation of
SnapshotTriggerDefinition that doesn't trigger snapshots at all.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SnapshotTriggerA singleton instance of aSnapshotTriggerthat does nothing. -
Method Summary
Modifier and TypeMethodDescriptionprepareTrigger(Class<?> aggregateType) Prepares a new trigger for an aggregate with the givenaggregateIdentifierandaggregateType.static NoSnapshotTriggerDefinitionReturns the enum constant of this class with the specified name.static NoSnapshotTriggerDefinition[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface org.axonframework.eventsourcing.SnapshotTriggerDefinition
reconfigure
-
Enum Constant Details
-
INSTANCE
The singleton instance of aNoSnapshotTriggerDefinition.
-
-
Field Details
-
TRIGGER
A singleton instance of aSnapshotTriggerthat does nothing.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
prepareTrigger
Description copied from interface:SnapshotTriggerDefinitionPrepares a new trigger for an aggregate with the givenaggregateIdentifierandaggregateType. The trigger will be notified of each event applied on the aggregate, as well as the moment at which the aggregate state is fully initialized based on its historic events.It is highly recommended that the instances returned by this method are
Serializable. Any resources that the trigger needs that are not serializable, can be reattached by implementing theSnapshotTriggerDefinition.reconfigure(Class, SnapshotTrigger)method. This method is invoked when a SnapshotTrigger has been deserialized.- Specified by:
prepareTriggerin interfaceSnapshotTriggerDefinition- Parameters:
aggregateType- The type of aggregate for which to create a trigger- Returns:
- the trigger instance for an aggregate
-