Skip to content

Commit

Permalink
show case for broken noRetry
Browse files Browse the repository at this point in the history
  • Loading branch information
yilativs committed Nov 28, 2023
1 parent d0bd6d9 commit e180fbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/example/foo/service/FooService.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public void recover(FooException e, int i) {
throw e;
}

@Retryable(retryFor = RecoverableException.class, notRecoverable = NonRecoverableException.class, maxAttempts = 2, backoff = @Backoff(delay = 1000))
@Retryable(retryFor = RecoverableException.class, noRetryFor = NonRecoverableException.class, maxAttempts = 2, backoff = @Backoff(delay = 1000))
public boolean throwsException(boolean recoverable) throws RecoverableException, NonRecoverableException {
if (recoverable) {
throw new RecoverableException();
Expand Down

0 comments on commit e180fbe

Please sign in to comment.