Package io.camunda.client.protocol.rest
Class Partition
java.lang.Object
io.camunda.client.protocol.rest.Partition
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-10-08T19:37:20.302687113Z[GMT]",
comments="Generator version: 7.12.0")
public class Partition
extends Object
Provides information on a partition within a broker node.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDescribes the current health of the partition.static enumDescribes the Raft role of the broker for a given partition. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanDescribes the current health of the partition.The unique ID of this partition.getRole()Describes the Raft role of the broker for a given partition.inthashCode()health(Partition.HealthEnum health) partitionId(Integer partitionId) role(Partition.RoleEnum role) voidsetHealth(Partition.HealthEnum health) voidsetPartitionId(Integer partitionId) voidsetRole(Partition.RoleEnum role) toString()Convert the instance into URL query string.toUrlQueryString(String prefix) Convert the instance into URL query string.
-
Field Details
-
JSON_PROPERTY_PARTITION_ID
- See Also:
-
JSON_PROPERTY_ROLE
- See Also:
-
JSON_PROPERTY_HEALTH
- See Also:
-
-
Constructor Details
-
Partition
public Partition()
-
-
Method Details
-
partitionId
-
getPartitionId
The unique ID of this partition.- Returns:
- partitionId
-
setPartitionId
-
role
-
getRole
Describes the Raft role of the broker for a given partition.- Returns:
- role
-
setRole
-
health
-
getHealth
Describes the current health of the partition.- Returns:
- health
-
setHealth
-
equals
-
hashCode
public int hashCode() -
toString
-
toUrlQueryString
Convert the instance into URL query string.- Returns:
- URL query string
-
toUrlQueryString
Convert the instance into URL query string.- Parameters:
prefix- prefix of the query string- Returns:
- URL query string
-