Enum Class EventPublicationStrategy
java.lang.Object
java.lang.Enum<EventPublicationStrategy>
io.fluxcapacitor.javaclient.modeling.EventPublicationStrategy
- All Implemented Interfaces:
Serializable,Comparable<EventPublicationStrategy>,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDon't store applied events in the event store.Store applied events in the event store and also publish events to event handlers.Only store applied events in the event store. -
Method Summary
Modifier and TypeMethodDescriptionstatic EventPublicationStrategyReturns the enum constant of this class with the specified name.static EventPublicationStrategy[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
STORE_AND_PUBLISH
Store applied events in the event store and also publish events to event handlers. -
STORE_ONLY
Only store applied events in the event store. Don't publish to event handlers. -
PUBLISH_ONLY
Don't store applied events in the event store. Only publish to event handlers. Note that this will prevent the aggregate from (ever) being event sourced.
-
-
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
-