private <T, E extends Throwable> boolean doOpenInterceptors( RetryCallback<T, E> callback, RetryContext context) { boolean result = true; for (RetryListener listener : this.listeners) { result = result && listener.open(context, callback); } return result; }
private <T, E extends Throwable> void doCloseInterceptors( RetryCallback<T, E> callback, RetryContext context, Throwable lastException) { for (int i = this.listeners.length; i-- > 0;) { this.listeners[i].close(context, callback, lastException); } }
private <T, E extends Throwable> void doOnErrorInterceptors( RetryCallback<T, E> callback, RetryContext context, Throwable throwable) { for (int i = this.listeners.length; i-- > 0;) { this.listeners[i].onError(context, callback, throwable); } }
private <T, E extends Throwable> void doOnErrorInterceptors( RetryCallback<T, E> callback, RetryContext context, Throwable throwable) { for (int i = this.listeners.length; i-- > 0;) { this.listeners[i].onError(context, callback, throwable); } }
private <T, E extends Throwable> void doCloseInterceptors( RetryCallback<T, E> callback, RetryContext context, Throwable lastException) { for (int i = this.listeners.length; i-- > 0;) { this.listeners[i].close(context, callback, lastException); } }
private <T, E extends Throwable> boolean doOpenInterceptors( RetryCallback<T, E> callback, RetryContext context) { boolean result = true; for (RetryListener listener : this.listeners) { result = result && listener.open(context, callback); } return result; }