Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Implementing retryable RestClient using Spring Retry
@Retryable(value = {RemoteServiceUnavailableException.class}, maxAttempts = 8,
backoff = @Backoff(delay = 1000, multiplier = 2), label = "generate-alias-retry-label")
String generateAlias(String cardNo);
@Recover
String fallbackForGenerateAlias(Throwable th, String cardNo);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.