Java Client connects multiple alphas

I now have three alpha instances under the same group. When creating DgraphClient, I initialized the three alpha configurations. When performing data operations, DgraphClient will randomly connect to an alpha instance, but when one of the alpha instances appears question. DgraphClient will still randomly connect to the problem alpha instance, which is not what I want, I want DgraphClient not to connect to the problem alpha instance, what should I do?