Package io.camunda.client.impl.response
Class PartitionInfoImpl
java.lang.Object
io.camunda.client.impl.response.PartitionInfoImpl
- All Implemented Interfaces:
PartitionInfo
-
Constructor Summary
ConstructorsConstructorDescriptionPartitionInfoImpl(Partition httpPartition) PartitionInfoImpl(GatewayOuterClass.Partition partition) -
Method Summary
-
Constructor Details
-
PartitionInfoImpl
-
PartitionInfoImpl
-
-
Method Details
-
getPartitionId
public int getPartitionId()- Specified by:
getPartitionIdin interfacePartitionInfo- Returns:
- the partition's id
-
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
- Specified by:
getHealthin interfacePartitionInfo- Returns:
- the current health status for the broker for this partition (i.e. healthy or unhealthy)
-
hashCode
public int hashCode() -
equals
-
toString
-