Record Class PrimitiveMetadata

java.lang.Object
java.lang.Record
io.axoniq.framework.workflow.dsl.api.PrimitiveMetadata
Record Components:
stepName - step name.
eventNameCustomizer - event name customizer.

public record PrimitiveMetadata(String stepName, EventNameCustomizer eventNameCustomizer) extends Record
Reusable metadata shared by primitive specs.
Since:
5.4.0
Author:
Simon Zambrovski
  • Constructor Details

    • PrimitiveMetadata

      public PrimitiveMetadata(String stepName, EventNameCustomizer eventNameCustomizer)
      Creates an instance of a PrimitiveMetadata record class.
      Parameters:
      stepName - the value for the stepName record component
      eventNameCustomizer - the value for the eventNameCustomizer record component
  • Method Details

    • stepName

      public PrimitiveMetadata stepName(String stepName)
      Returns a copy of this metadata with the provided step name.
      Parameters:
      stepName - logical step name
      Returns:
      copied metadata with updated step name
    • eventNameCustomizer

      public PrimitiveMetadata eventNameCustomizer(EventNameCustomizer eventNameCustomizer)
      Returns a copy of this metadata with the provided event name customizer.
      Parameters:
      eventNameCustomizer - customizer for published event names
      Returns:
      copied metadata with updated event naming
    • 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.
    • stepName

      public String stepName()
      Returns the value of the stepName record component.
      Returns:
      the value of the stepName record component
    • eventNameCustomizer

      public EventNameCustomizer eventNameCustomizer()
      Returns the value of the eventNameCustomizer record component.
      Returns:
      the value of the eventNameCustomizer record component