Skip to content

Commit

Permalink
[refac] change retry properties
Browse files Browse the repository at this point in the history
  • Loading branch information
kgy1008 committed Dec 1, 2024
1 parent 00dd813 commit fd83ac8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class HeartCommandService {
private final StoreFinder storeFinder;

@Retryable(
retryFor = ObjectOptimisticLockingFailureException.class,
noRetryFor = {ConflictException.class, NotFoundException.class},
notRecoverable = {ConflictException.class, NotFoundException.class},
backoff = @Backoff(delay = 100))
@Transactional
Expand All @@ -44,7 +44,7 @@ public HeartResponse createHeart(final HeartCommand heartCommand) {
}

@Retryable(
retryFor = ObjectOptimisticLockingFailureException.class,
noRetryFor = {NotFoundException.class, ConflictException.class, BadRequestException.class},
notRecoverable = {NotFoundException.class, ConflictException.class, BadRequestException.class},
backoff = @Backoff(delay = 100))
@Transactional
Expand Down

0 comments on commit fd83ac8

Please sign in to comment.