Package io.zeebe.client.api.response
Interface PartitionInfo
-
public interface PartitionInfo
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getPartitionId()
PartitionBrokerRole
getRole()
boolean
isLeader()
-
-
-
Method Detail
-
getPartitionId
int getPartitionId()
- Returns:
- the partition's id
-
getRole
PartitionBrokerRole getRole()
- Returns:
- the current role of the broker for this partition (i.e. leader or follower)
-
isLeader
boolean isLeader()
- Returns:
true
if the broker is the current leader of this partition
-
-