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 exporterinitializedFrom- 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.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionExporterState(long metadataVersion, ExporterState.State state, Optional<String> initializedFrom) Creates an instance of aExporterStaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theinitializedFromrecord component.longReturns the value of themetadataVersionrecord component.state()Returns the value of thestaterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ExporterState
public ExporterState(long metadataVersion, ExporterState.State state, Optional<String> initializedFrom) Creates an instance of aExporterStaterecord class.- Parameters:
metadataVersion- the value for themetadataVersionrecord componentstate- the value for thestaterecord componentinitializedFrom- the value for theinitializedFromrecord component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object); primitive components are compared with '=='. -
metadataVersion
public long metadataVersion()Returns the value of themetadataVersionrecord component.- Returns:
- the value of the
metadataVersionrecord component
-
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-
initializedFrom
Returns the value of theinitializedFromrecord component.- Returns:
- the value of the
initializedFromrecord component
-