-
-
Save LokeshAggarwal2/a124d52ad5fe63af6bd38986729b5d26 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Retry(name = "retryService", fallbackMethod = "retryfallback") | |
public String registerUser(String data) throws InterruptedException { | |
return restTemplate.postForObject("http://lokeshaggarwal-eval-prod.apigee.net/createuser", data, String.class); | |
} | |
public String retryfallback(String data, Throwable t) { | |
logger.error("Inside retryfallback, cause - {}", t.toString()); | |
return "Inside retryfallback method. Some error occurred while calling service for user registration"; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment