Record Class EventHandlingProperties.ProcessorSettings.LifeCycle

java.lang.Object
java.lang.Record
com.opencqrs.framework.eventhandler.EventHandlingProperties.ProcessorSettings.LifeCycle
Record Components:
autoStart - Whether the event handling processor shall be started automatically.
controller - The built-in life-cycle controller to use, unless "controller-registration" is specified. Defaults to "leader-election", if a unique "lock-registry" bean is available within the application context, "application-context" otherwise.
controllerRegistration - Custom EventHandlingProcessorLifecycleRegistration bean reference to use.
lockRegistry - Custom lock registry to use, if "leader-election" applies.
partitions - The number of parallel instances (partitions) to start for this event processor. It is important to note, that partitioning of EventHandlingProcessors cannot be changed later, unless the processor is completely transient, i.e. it's side-effects are completely idempotent and no persistent progress tracking is needed. In all other cases, starting a partitioned processor results in partitioned EventHandlingProperties.ProcessorSettings.Progress and parallel processing will proceed the progress independently according to the configured EventHandlingProperties.ProcessorSettings.Sequencing. Hence, reducing or increasing the number of partitions must only be performed administratively, while all instances are stopped and have the same progress. Furthermore, persistent progress needs to be duplicated for new partitions, manually.
Enclosing class:
EventHandlingProperties.ProcessorSettings

public static record EventHandlingProperties.ProcessorSettings.LifeCycle(Boolean autoStart, EventHandlingProperties.ProcessorSettings.LifeCycle.Controller controller, String controllerRegistration, String lockRegistry, Long partitions) extends Record
  • Constructor Details

  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • autoStart

      public Boolean autoStart()
      Returns the value of the autoStart record component.
      Returns:
      the value of the autoStart record component
    • controller

      Returns the value of the controller record component.
      Returns:
      the value of the controller record component
    • controllerRegistration

      public String controllerRegistration()
      Returns the value of the controllerRegistration record component.
      Returns:
      the value of the controllerRegistration record component
    • lockRegistry

      public String lockRegistry()
      Returns the value of the lockRegistry record component.
      Returns:
      the value of the lockRegistry record component
    • partitions

      public Long partitions()
      Returns the value of the partitions record component.
      Returns:
      the value of the partitions record component