Interface PartitionInfo

All Known Implementing Classes:
PartitionInfoImpl

public interface PartitionInfo
  • Method Details

    • getPartitionId

      int getPartitionId()
      Returns:
      the partition's id
    • 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
    • getHealth

      Returns:
      the current health status for the broker for this partition (i.e. healthy or unhealthy)