/** * Return the current leader, or null if there is none. */ public Replica getLeaderReplica() { return getOneOfRoleOrNull(Role.LEADER); }
/** * Return the current leader, or null if there is none. */ public Replica getLeaderReplica() { return getOneOfRoleOrNull(Role.LEADER); }