Record Class ClusterConfigurationChangeOperation.PartitionChangeOperation.PartitionLeaveOperation
java.lang.Object
java.lang.Record
io.camunda.zeebe.dynamic.config.state.ClusterConfigurationChangeOperation.PartitionChangeOperation.PartitionLeaveOperation
- Record Components:
memberId- the member id of the member that will stop replicating the partitionpartitionId- id of the partition to leave
- All Implemented Interfaces:
ClusterConfigurationChangeOperation,ClusterConfigurationChangeOperation.PartitionChangeOperation
- Enclosing interface:
ClusterConfigurationChangeOperation.PartitionChangeOperation
public static record ClusterConfigurationChangeOperation.PartitionChangeOperation.PartitionLeaveOperation(MemberId memberId, int partitionId)
extends Record
implements ClusterConfigurationChangeOperation.PartitionChangeOperation
Operation to remove a member from a partition's replication group.
-
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
ConstructorsConstructorDescriptionPartitionLeaveOperation(MemberId memberId, int partitionId) Creates an instance of aPartitionLeaveOperationrecord 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.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PartitionLeaveOperation
Creates an instance of aPartitionLeaveOperationrecord class.- Parameters:
memberId- the value for thememberIdrecord componentpartitionId- the value for thepartitionIdrecord 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
-