Record Class ExporterState

java.lang.Object
java.lang.Record
io.camunda.zeebe.dynamic.config.state.ExporterState
Record Components:
metadataVersion - the version of the metadata that is stored in the exporter runtime state. This is incremented when ever the exporter is re-enabled.
state - the state of the exporter
initializedFrom - the id of the exporter that the metadata of this exporter was initialized from.

public record ExporterState(long metadataVersion, ExporterState.State state, Optional<String> initializedFrom) extends Record
Represents the state of an exporter. The full configuration of this exporter must be provided as part of the application configuration. Here we only keep track of whether it is enabled or disabled. Sensitive information like access details must not be added here.
  • Constructor Details

    • ExporterState

      public ExporterState(long metadataVersion, ExporterState.State state, Optional<String> initializedFrom)
      Creates an instance of a ExporterState record class.
      Parameters:
      metadataVersion - the value for the metadataVersion record component
      state - the value for the state record component
      initializedFrom - the value for the initializedFrom record component
  • 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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.
    • metadataVersion

      public long metadataVersion()
      Returns the value of the metadataVersion record component.
      Returns:
      the value of the metadataVersion record component
    • state

      public ExporterState.State state()
      Returns the value of the state record component.
      Returns:
      the value of the state record component
    • initializedFrom

      public Optional<String> initializedFrom()
      Returns the value of the initializedFrom record component.
      Returns:
      the value of the initializedFrom record component