Enum Class EventPublicationStrategy

java.lang.Object
java.lang.Enum<EventPublicationStrategy>
io.fluxcapacitor.javaclient.modeling.EventPublicationStrategy
All Implemented Interfaces:
Serializable, Comparable<EventPublicationStrategy>, Constable

public enum EventPublicationStrategy extends Enum<EventPublicationStrategy>
  • Enum Constant Details

    • STORE_AND_PUBLISH

      public static final EventPublicationStrategy STORE_AND_PUBLISH
      Store applied events in the event store and also publish events to event handlers.
    • STORE_ONLY

      public static final EventPublicationStrategy STORE_ONLY
      Only store applied events in the event store. Don't publish to event handlers.
    • PUBLISH_ONLY

      public static final EventPublicationStrategy 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

      public static EventPublicationStrategy[] 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

      public static EventPublicationStrategy valueOf(String name)
      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 name
      NullPointerException - if the argument is null