Record Class PartitionState
java.lang.Object
java.lang.Record
io.camunda.zeebe.dynamic.config.state.PartitionState
public record PartitionState(PartitionState.State state, int priority, DynamicPartitionConfig config)
extends Record
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionPartitionState(PartitionState.State state, int priority, DynamicPartitionConfig config) Creates an instance of aPartitionStaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic PartitionStateactive(int priority, DynamicPartitionConfig partitionConfig) static PartitionStatebootstrapping(int priority, DynamicPartitionConfig partitionConfig) config()Returns the value of theconfigrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static PartitionStatejoining(int priority, DynamicPartitionConfig partitionConfig) intpriority()Returns the value of thepriorityrecord component.state()Returns the value of thestaterecord component.toActive()final StringtoString()Returns a string representation of this record class.updateConfig(DynamicPartitionConfig config) updateConfig(UnaryOperator<DynamicPartitionConfig> configUpdater)
-
Constructor Details
-
PartitionState
Creates an instance of aPartitionStaterecord class.- Parameters:
state- the value for thestaterecord componentpriority- the value for thepriorityrecord componentconfig- the value for theconfigrecord component
-
-
Method Details
-
active
-
joining
-
bootstrapping
-
toActive
-
toLeaving
-
updateConfig
-
updateConfig
-
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 '=='. -
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-
priority
public int priority()Returns the value of thepriorityrecord component.- Returns:
- the value of the
priorityrecord component
-
config
Returns the value of theconfigrecord component.- Returns:
- the value of the
configrecord component
-