Class PartitionInfoImpl
- java.lang.Object
-
- io.camunda.zeebe.client.impl.response.PartitionInfoImpl
-
- All Implemented Interfaces:
PartitionInfo
public class PartitionInfoImpl extends Object implements PartitionInfo
-
-
Constructor Summary
Constructors Constructor Description PartitionInfoImpl(GatewayOuterClass.Partition partition)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PartitionBrokerHealthgetHealth()intgetPartitionId()PartitionBrokerRolegetRole()booleanisLeader()StringtoString()
-
-
-
Constructor Detail
-
PartitionInfoImpl
public PartitionInfoImpl(GatewayOuterClass.Partition partition)
-
-
Method Detail
-
getPartitionId
public int getPartitionId()
- Specified by:
getPartitionIdin interfacePartitionInfo- Returns:
- the partition's id
-
getRole
public PartitionBrokerRole getRole()
- Specified by:
getRolein interfacePartitionInfo- Returns:
- the current role of the broker for this partition (i.e. leader or follower)
-
isLeader
public boolean isLeader()
- Specified by:
isLeaderin interfacePartitionInfo- Returns:
trueif the broker is the current leader of this partition
-
getHealth
public PartitionBrokerHealth getHealth()
- Specified by:
getHealthin interfacePartitionInfo- Returns:
- the current health status for the broker for this partition (i.e. healthy or unhealthy)
-
-