Skip to content

Instantly share code, notes, and snippets.

@HVHO
Created December 5, 2021 14:06
Show Gist options
  • Save HVHO/f03e01444f86fe71b73ab6c3bd44a858 to your computer and use it in GitHub Desktop.
Save HVHO/f03e01444f86fe71b73ab6c3bd44a858 to your computer and use it in GitHub Desktop.
public interface RetryListener {
<T, E extends Throwable> boolean open(RetryContext context, RetryCallback<T, E> callback);
<T, E extends Throwable> void close(RetryContext context, RetryCallback<T, E> callback, Throwable throwable);
<T, E extends Throwable> void onError(RetryContext context, RetryCallback<T, E> callback, Throwable throwable);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment