I need to use spring boot retry logic in my code. My retry method is getting call from multiple method, so I want to run retry logic for all caller method but retry logic is running only for first caller method and for later caller method, it is running only for 1 time in case of exception too.
someMethod1() {
retry();
}
someMethod2() {
retry();
}
someMethod3() {
retry();
}
@Retryable(maxAttempts = 2, value = SomeException.class)
public void retry() {
doSomething;
}