int result = retry(uniformDelay, 1, maxLoops, maxDelay, true); end = Instant.now(); duration = end.toEpochMilli() - begin.toEpochMilli(); retry(uniformDelay, 1, maxLoops, maxDelay, false); } catch (Exception e) { end = Instant.now(); result = retry(exponentialInitialDelay, multiplier, maxLoops, maxDelay, true); end = Instant.now(); duration = end.toEpochMilli() - begin.toEpochMilli(); retry(uniformDelay, 1, maxLoops, maxDelay - 1, true); } catch (Exception e) { end = Instant.now();