@Test public void test() { CbTime cbTime = new CbTime(); cbTime.setMsg(0); cbTime.setTime(1); timeService.call(cbTime); }
@Retryable(value = RuntimeException.class, maxAttempts = 5, backoff = @Backoff(delay = 2000L, multiplier = 1.5)) public void call(CbTime cbTime) { LOGGER.info("Call " + cbTime); cbTime.setTime(cbTime.getTime() + 1); throw new RuntimeException(); }
TimeService { @Retryable(value = RuntimeException.class, maxAttempts = 5, backoff = @Backoff(delay = 2000L, multiplier = 1.5)) public void call(CbTime cbTime) { LOGGER.info("Call " + cbTime); cbTime.setTime(cbTime.getTime() + 1); throw new RuntimeException(); } }
TimeService { @Retryable(value = RuntimeException.class, maxAttempts = 5, backoff = @Backoff(delay = 2000L, multiplier = 1.5)) public void call(CbTime cbTime) { LOGGER.info("Call " + cbTime); cbTime.setTime(cbTime.getTime() + 1); throw new RuntimeException(); }  }
TimeService { @Retryable(value = RuntimeException.class, maxAttempts = 5, backoff = @Backoff(delay = 2000L, multiplier = 1.5)) public void call(CbTime cbTime) { LOGGER.info("Call " + cbTime); cbTime.setTime(cbTime.getTime() + 1); throw new RuntimeException(); }  @Retryable(value = RuntimeException.class, maxAttempts = 5, backoff = @Backoff(delay = 2000L, multiplier = 1.5)) void call(CbTime cbTime); @Recover void recover(RuntimeException e, CbTime cbTime); }
TimeService { @Retryable(value = RuntimeException.class, maxAttempts = 5, backoff = @Backoff(delay = 2000L, multiplier = 1.5)) public void call(CbTime cbTime) { LOGGER.info("Call " + cbTime); cbTime.setTime(cbTime.getTime() + 1); throw new RuntimeException(); }  @Retryable(value = RuntimeException.class, maxAttempts = 5, backoff = @Backoff(delay = 2000L, multiplier = 1.5)) void call(CbTime cbTime); @Recover void recover(RuntimeException e, CbTime cbTime);  }