Record Class ClusterConfigurationChangeResponse
java.lang.Object
java.lang.Record
io.camunda.zeebe.dynamic.config.api.ClusterConfigurationChangeResponse
public record ClusterConfigurationChangeResponse(long changeId, Map<MemberId,MemberState> currentConfiguration, Map<MemberId,MemberState> expectedConfiguration, List<ClusterConfigurationChangeOperation> plannedChanges)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionClusterConfigurationChangeResponse(long changeId, Map<MemberId, MemberState> currentConfiguration, Map<MemberId, MemberState> expectedConfiguration, List<ClusterConfigurationChangeOperation> plannedChanges) Creates an instance of aClusterConfigurationChangeResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongchangeId()Returns the value of thechangeIdrecord component.Returns the value of thecurrentConfigurationrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexpectedConfigurationrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theplannedChangesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ClusterConfigurationChangeResponse
public ClusterConfigurationChangeResponse(long changeId, Map<MemberId, MemberState> currentConfiguration, Map<MemberId, MemberState> expectedConfiguration, List<ClusterConfigurationChangeOperation> plannedChanges) Creates an instance of aClusterConfigurationChangeResponserecord class.- Parameters:
changeId- the value for thechangeIdrecord componentcurrentConfiguration- the value for thecurrentConfigurationrecord componentexpectedConfiguration- the value for theexpectedConfigurationrecord componentplannedChanges- the value for theplannedChangesrecord 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 '=='. -
changeId
public long changeId()Returns the value of thechangeIdrecord component.- Returns:
- the value of the
changeIdrecord component
-
currentConfiguration
Returns the value of thecurrentConfigurationrecord component.- Returns:
- the value of the
currentConfigurationrecord component
-
expectedConfiguration
Returns the value of theexpectedConfigurationrecord component.- Returns:
- the value of the
expectedConfigurationrecord component
-
plannedChanges
Returns the value of theplannedChangesrecord component.- Returns:
- the value of the
plannedChangesrecord component
-