I couldn't find any info about a possibility of action I need. I am using @Retryable annotation with @Recover handler method. Smth like this:
@Retryable(value = {Exception.class}, maxAttempts = 5, backoff = @Backoff(delay = 10000))
public void update(Integer id)
{
execute(id);
}
@Recover
public void recover(Exception ex)
{
logger.error("Error when updating object with id {}", id);
}
The problem is that I don't know, how to pass my parameter "id" to recover() method. Any ideas? Thanks in advance.