Record Class ClusterConfigurationManagementRequest.JoinPartitionRequest
java.lang.Object
java.lang.Record
io.camunda.zeebe.dynamic.config.api.ClusterConfigurationManagementRequest.JoinPartitionRequest
- All Implemented Interfaces:
ClusterConfigurationManagementRequest
- Enclosing interface:
ClusterConfigurationManagementRequest
public static record ClusterConfigurationManagementRequest.JoinPartitionRequest(MemberId memberId, int partitionId, int priority, boolean dryRun)
extends Record
implements ClusterConfigurationManagementRequest
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.camunda.zeebe.dynamic.config.api.ClusterConfigurationManagementRequest
ClusterConfigurationManagementRequest.AddMembersRequest, ClusterConfigurationManagementRequest.BrokerScaleRequest, ClusterConfigurationManagementRequest.CancelChangeRequest, ClusterConfigurationManagementRequest.ClusterPatchRequest, ClusterConfigurationManagementRequest.ClusterScaleRequest, ClusterConfigurationManagementRequest.ExporterDisableRequest, ClusterConfigurationManagementRequest.ExporterEnableRequest, ClusterConfigurationManagementRequest.ForceRemoveBrokersRequest, ClusterConfigurationManagementRequest.JoinPartitionRequest, ClusterConfigurationManagementRequest.LeavePartitionRequest, ClusterConfigurationManagementRequest.ReassignPartitionsRequest, ClusterConfigurationManagementRequest.RemoveMembersRequest -
Constructor Summary
ConstructorsConstructorDescriptionJoinPartitionRequest(MemberId memberId, int partitionId, int priority, boolean dryRun) Creates an instance of aJoinPartitionRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleandryRun()Returns the value of thedryRunrecord component.final 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
-
JoinPartitionRequest
Creates an instance of aJoinPartitionRequestrecord class.- Parameters:
memberId- the value for thememberIdrecord componentpartitionId- the value for thepartitionIdrecord componentpriority- the value for thepriorityrecord componentdryRun- the value for thedryRunrecord 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.- Returns:
- the value of the
memberIdrecord component
-
partitionId
public int partitionId()Returns the value of thepartitionIdrecord component.- Returns:
- the value of the
partitionIdrecord component
-
priority
public int priority()Returns the value of thepriorityrecord component.- Returns:
- the value of the
priorityrecord component
-
dryRun
public boolean dryRun()Returns the value of thedryRunrecord component.- Specified by:
dryRunin interfaceClusterConfigurationManagementRequest- Returns:
- the value of the
dryRunrecord component
-