Record Class ClusterConfigurationChangeOperation.PartitionChangeOperation.PartitionReconfigurePriorityOperation
java.lang.Object
java.lang.Record
io.camunda.zeebe.dynamic.config.state.ClusterConfigurationChangeOperation.PartitionChangeOperation.PartitionReconfigurePriorityOperation
- Record Components:
memberId- the member id of the member that will change its prioritypartitionId- id of the partition to reconfigurepriority- new priority of the member in the partition
- All Implemented Interfaces:
ClusterConfigurationChangeOperation,ClusterConfigurationChangeOperation.PartitionChangeOperation
- Enclosing interface:
ClusterConfigurationChangeOperation.PartitionChangeOperation
public static record ClusterConfigurationChangeOperation.PartitionChangeOperation.PartitionReconfigurePriorityOperation(MemberId memberId, int partitionId, int priority)
extends Record
implements ClusterConfigurationChangeOperation.PartitionChangeOperation
Operation to reconfigure the priority of a member used for Raft's priority election.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.camunda.zeebe.dynamic.config.state.ClusterConfigurationChangeOperation
ClusterConfigurationChangeOperation.MemberJoinOperation, ClusterConfigurationChangeOperation.MemberLeaveOperation, ClusterConfigurationChangeOperation.MemberRemoveOperation, ClusterConfigurationChangeOperation.PartitionChangeOperationNested classes/interfaces inherited from interface io.camunda.zeebe.dynamic.config.state.ClusterConfigurationChangeOperation.PartitionChangeOperation
ClusterConfigurationChangeOperation.PartitionChangeOperation.PartitionBootstrapOperation, ClusterConfigurationChangeOperation.PartitionChangeOperation.PartitionDisableExporterOperation, ClusterConfigurationChangeOperation.PartitionChangeOperation.PartitionEnableExporterOperation, ClusterConfigurationChangeOperation.PartitionChangeOperation.PartitionForceReconfigureOperation, ClusterConfigurationChangeOperation.PartitionChangeOperation.PartitionJoinOperation, ClusterConfigurationChangeOperation.PartitionChangeOperation.PartitionLeaveOperation, ClusterConfigurationChangeOperation.PartitionChangeOperation.PartitionReconfigurePriorityOperation -
Constructor Summary
ConstructorsConstructorDescriptionPartitionReconfigurePriorityOperation(MemberId memberId, int partitionId, int priority) Creates an instance of aPartitionReconfigurePriorityOperationrecord 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.memberId()Returns the value of thememberIdrecord component.intReturns the value of thepartitionIdrecord component.intpriority()Returns the value of thepriorityrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PartitionReconfigurePriorityOperation
Creates an instance of aPartitionReconfigurePriorityOperationrecord class.- Parameters:
memberId- the value for thememberIdrecord componentpartitionId- the value for thepartitionIdrecord componentpriority- the value for thepriorityrecord 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 '=='. -
memberId
Returns the value of thememberIdrecord component.- Specified by:
memberIdin interfaceClusterConfigurationChangeOperation- Returns:
- the value of the
memberIdrecord component
-
partitionId
public int partitionId()Returns the value of thepartitionIdrecord component.- Specified by:
partitionIdin interfaceClusterConfigurationChangeOperation.PartitionChangeOperation- Returns:
- the value of the
partitionIdrecord component
-
priority
public int priority()Returns the value of thepriorityrecord component.- Returns:
- the value of the
priorityrecord component
-