Record Class ClusterConfigurationChangeOperation.MemberRemoveOperation
java.lang.Object
java.lang.Record
io.camunda.zeebe.dynamic.config.state.ClusterConfigurationChangeOperation.MemberRemoveOperation
- Record Components:
memberId- the id of the member that applies this operationsmemberToRemove- the id of the member to remove
- All Implemented Interfaces:
ClusterConfigurationChangeOperation
- Enclosing interface:
ClusterConfigurationChangeOperation
public static record ClusterConfigurationChangeOperation.MemberRemoveOperation(MemberId memberId, MemberId memberToRemove)
extends Record
implements ClusterConfigurationChangeOperation
Operation to remove a member from the ClusterConfiguration. This operation is used to force
remove a (unreachable) member.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.camunda.zeebe.dynamic.config.state.ClusterConfigurationChangeOperation
ClusterConfigurationChangeOperation.MemberJoinOperation, ClusterConfigurationChangeOperation.MemberLeaveOperation, ClusterConfigurationChangeOperation.MemberRemoveOperation, ClusterConfigurationChangeOperation.PartitionChangeOperation -
Constructor Summary
ConstructorsConstructorDescriptionMemberRemoveOperation(MemberId memberId, MemberId memberToRemove) Creates an instance of aMemberRemoveOperationrecord 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.Returns the value of thememberToRemoverecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MemberRemoveOperation
Creates an instance of aMemberRemoveOperationrecord class.- Parameters:
memberId- the value for thememberIdrecord componentmemberToRemove- the value for thememberToRemoverecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
memberId
Returns the value of thememberIdrecord component.- Specified by:
memberIdin interfaceClusterConfigurationChangeOperation- Returns:
- the value of the
memberIdrecord component
-
memberToRemove
Returns the value of thememberToRemoverecord component.- Returns:
- the value of the
memberToRemoverecord component
-