public boolean waitFor(int max) throws SQLException, InterruptedException {
long start = System.currentTimeMillis();
while (getStatus().isUnstable()) {
public boolean waitFor(int max) throws SQLException, InterruptedException {
long start = System.currentTimeMillis();
while (getStatus().isUnstable()) {