Class ImmutableDeploymentDistributionRecordValue
java.lang.Object
io.camunda.zeebe.protocol.record.value.ImmutableDeploymentDistributionRecordValue
- All Implemented Interfaces:
JsonSerializable,RecordValue,DeploymentDistributionRecordValue
@Deprecated
public final class ImmutableDeploymentDistributionRecordValue
extends Object
implements DeploymentDistributionRecordValue
Deprecated.
Immutable implementation of
DeploymentDistributionRecordValue.
Use the builder to create immutable instances:
ImmutableDeploymentDistributionRecordValue.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classDeprecated.Builds instances of typeImmutableDeploymentDistributionRecordValue. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Deprecated.Creates a builder forImmutableDeploymentDistributionRecordValue.copyOf(DeploymentDistributionRecordValue instance) Deprecated.Creates an immutable copy of aDeploymentDistributionRecordValuevalue.booleanDeprecated.This instance is equal to all instances ofImmutableDeploymentDistributionRecordValuethat have equal attribute values.intDeprecated.inthashCode()Deprecated.Returns a lazily computed hash code from attributes:partitionId.toString()Deprecated.Prints the immutable valueDeploymentDistributionRecordValuewith attribute values.withPartitionId(int value) Deprecated.Copy the current immutable object by setting a value for thepartitionIdattribute.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.camunda.zeebe.protocol.record.JsonSerializable
toJson
-
Method Details
-
getPartitionId
public int getPartitionId()Deprecated.- Specified by:
getPartitionIdin interfaceDeploymentDistributionRecordValue- Returns:
- the partition where the deployment should be distributed
-
withPartitionId
Deprecated.Copy the current immutable object by setting a value for thepartitionIdattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for partitionId- Returns:
- A modified copy of the
thisobject
-
equals
Deprecated.This instance is equal to all instances ofImmutableDeploymentDistributionRecordValuethat have equal attribute values. -
hashCode
public int hashCode()Deprecated.Returns a lazily computed hash code from attributes:partitionId. -
toString
Deprecated.Prints the immutable valueDeploymentDistributionRecordValuewith attribute values. -
copyOf
public static ImmutableDeploymentDistributionRecordValue copyOf(DeploymentDistributionRecordValue instance) Deprecated.Creates an immutable copy of aDeploymentDistributionRecordValuevalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable DeploymentDistributionRecordValue instance
-
builder
Deprecated.Creates a builder forImmutableDeploymentDistributionRecordValue.ImmutableDeploymentDistributionRecordValue.builder() .withPartitionId(int) // optionalpartitionId.build();- Returns:
- A new ImmutableDeploymentDistributionRecordValue builder
-