It looks to me that somehow the "this.partition.getMinConnections()" should be a part of the condition of the "while" clause.
It looks to me that somehow the "this.partition .getMinConnecti ons()" should be a part of the condition of the "while" clause.