/** * Retry this Solo indefinitely if it fails. * @return the new Solo instance */ public final Solo<T> retry() { return onAssembly(new SoloRetry<T>(this, Long.MAX_VALUE)); }
/** * Retry this Solo at most the given number of times if it fails. * @param times the number of times, Long.MAX_VALUE means indefinitely * @return the new Solo instance */ public final Solo<T> retry(long times) { if (times < 0L) { throw new IllegalArgumentException("times >= 0 required but it was " + times); } return onAssembly(new SoloRetry<T>(this, times)); }
/** * Retry this Solo at most the given number of times if it fails. * @param times the number of times, Long.MAX_VALUE means indefinitely * @return the new Solo instance */ public final Solo<T> retry(long times) { if (times < 0L) { throw new IllegalArgumentException("times >= 0 required but it was " + times); } return onAssembly(new SoloRetry<T>(this, times)); }
/** * Retry this Solo indefinitely if it fails. * @return the new Solo instance */ public final Solo<T> retry() { return onAssembly(new SoloRetry<T>(this, Long.MAX_VALUE)); }