Skip to content

Instantly share code, notes, and snippets.

@mchernyavskaya
Last active July 23, 2017 11:35
Show Gist options
  • Save mchernyavskaya/15350a37935387a31cc038776e1f25d1 to your computer and use it in GitHub Desktop.
Save mchernyavskaya/15350a37935387a31cc038776e1f25d1 to your computer and use it in GitHub Desktop.
Spring Retry Illustration - IO Exception
// we catch IOException to allow the program to continue
System.out.println("\n*** Executing IO Exception callback...");
try {
retryTemplate.execute(new SpecificExceptionCallback(), new LoggingRecoveryCallback());
} catch (IOException e) {
System.out.println("Suppressed IO Exception");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment