@Override public String toString() { StringBuilder builder = new StringBuilder(); builder.append("Duration"); if (finish >= start) { builder.append(" finished at ").append(getInterval()).append(" millis;"); } else { if (start > 0) { builder.append(" started but not yet finished;"); } else { builder.append(" unstarted;"); } } if (limit > 0) { builder.append(" limit: ").append(limit).append(" millis"); if (getLimitExceeded()) { builder.append(" - exceeded"); } } return builder.toString(); }
@Override public String toString() { StringBuilder builder = new StringBuilder(); builder.append("Duration"); if (finish >= start) { builder.append(" finished at ").append(getInterval()).append(" millis;"); } else { if (start > 0) { builder.append(" started but not yet finished;"); } else { builder.append(" unstarted;"); } } if (limit > 0) { builder.append(" limit: ").append(limit).append(" millis"); if (getLimitExceeded()) { builder.append(" - exceeded"); } } return builder.toString(); }
if (duration.getLimitExceeded()) { throw new WaitTimeoutException( String.format("Timeout after %d millis" +
if (duration.getLimitExceeded()) { throw new WaitTimeoutException( String.format("Timeout after %d millis" +
return r; if (duration.getLimitExceeded()) { log.debug( "Wait limit of {} millis to get to state {}, exceeded; app status\n {}",
return r; if (duration.getLimitExceeded()) { log.debug( "Wait limit of {} millis to get to state {}, exceeded; app status\n {}",
return getProxy(conf, application, rpcTimeout); } catch (IOException e) { if (connectTimeout <= 0 || timeout.getLimitExceeded()) { throw e; if (connectTimeout <= 0 || timeout.getLimitExceeded()) { throw e;
return getProxy(conf, application, rpcTimeout); } catch (IOException e) { if (connectTimeout <= 0 || timeout.getLimitExceeded()) { throw e; if (connectTimeout <= 0 || timeout.getLimitExceeded()) { throw e;