Skip to content

Instantly share code, notes, and snippets.

@mchernyavskaya
Last active July 23, 2017 11:34
Show Gist options
  • Save mchernyavskaya/b7f9244316b93e5cc9bf0176b2105663 to your computer and use it in GitHub Desktop.
Save mchernyavskaya/b7f9244316b93e5cc9bf0176b2105663 to your computer and use it in GitHub Desktop.
Spring Retry Illustration - Exception callback
// 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