Last active
July 23, 2017 11:34
-
-
Save mchernyavskaya/b7f9244316b93e5cc9bf0176b2105663 to your computer and use it in GitHub Desktop.
Spring Retry Illustration - Exception callback
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
// we catch Exception to allow the program to continue | |
System.out.println("\n*** Executing Exception callback..."); | |
try { | |
retryTemplate.execute(new ExceptionCallback(), new LoggingRecoveryCallback()); | |
} catch (Exception e) { | |
System.out.println("Suppressed Exception"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment