Interface PartitionInfo


  • public interface PartitionInfo
    • 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