/** * Execute the callback once if the policy dictates that we can, re-throwing any * exception encountered so that clients can re-present the same task later. * * @see RetryOperations#execute(RetryCallback, RetryState) * @param retryCallback the {@link RetryCallback} * @param retryState the {@link RetryState} * @throws ExhaustedRetryException if the retry has been exhausted. */ @Override public final <T, E extends Throwable> T execute(RetryCallback<T, E> retryCallback, RetryState retryState) throws E, ExhaustedRetryException { return doExecute(retryCallback, null, retryState); }
/** * Keep executing the callback until it either succeeds or the policy dictates that we * stop, in which case the recovery callback will be executed. * * @see RetryOperations#execute(RetryCallback, RecoveryCallback) * @param retryCallback the {@link RetryCallback} * @param recoveryCallback the {@link RecoveryCallback} * @throws TerminatedRetryException if the retry has been manually terminated by a * listener. */ @Override public final <T, E extends Throwable> T execute(RetryCallback<T, E> retryCallback, RecoveryCallback<T> recoveryCallback) throws E { return doExecute(retryCallback, recoveryCallback, null); }
/** * Execute the callback once if the policy dictates that we can, re-throwing any * exception encountered so that clients can re-present the same task later. * * @see RetryOperations#execute(RetryCallback, RetryState) * @param retryCallback the {@link RetryCallback} * @param recoveryCallback the {@link RecoveryCallback} * @param retryState the {@link RetryState} */ @Override public final <T, E extends Throwable> T execute(RetryCallback<T, E> retryCallback, RecoveryCallback<T> recoveryCallback, RetryState retryState) throws E, ExhaustedRetryException { return doExecute(retryCallback, recoveryCallback, retryState); }
/** * Keep executing the callback until it either succeeds or the policy dictates that we * stop, in which case the most recent exception thrown by the callback will be * rethrown. * * @see RetryOperations#execute(RetryCallback) * @param retryCallback the {@link RetryCallback} * * @throws TerminatedRetryException if the retry has been manually terminated by a * listener. */ @Override public final <T, E extends Throwable> T execute(RetryCallback<T, E> retryCallback) throws E { return doExecute(retryCallback, null, null); }
/** * Execute the callback once if the policy dictates that we can, re-throwing any * exception encountered so that clients can re-present the same task later. * * @see RetryOperations#execute(RetryCallback, RetryState) * @param retryCallback the {@link RetryCallback} * @param retryState the {@link RetryState} * @throws ExhaustedRetryException if the retry has been exhausted. */ @Override public final <T, E extends Throwable> T execute(RetryCallback<T, E> retryCallback, RetryState retryState) throws E, ExhaustedRetryException { return doExecute(retryCallback, null, retryState); }
/** * Keep executing the callback until it either succeeds or the policy dictates that we * stop, in which case the recovery callback will be executed. * * @see RetryOperations#execute(RetryCallback, RecoveryCallback) * @param retryCallback the {@link RetryCallback} * @param recoveryCallback the {@link RecoveryCallback} * @throws TerminatedRetryException if the retry has been manually terminated by a * listener. */ @Override public final <T, E extends Throwable> T execute(RetryCallback<T, E> retryCallback, RecoveryCallback<T> recoveryCallback) throws E { return doExecute(retryCallback, recoveryCallback, null); }
/** * Execute the callback once if the policy dictates that we can, re-throwing any * exception encountered so that clients can re-present the same task later. * * @see RetryOperations#execute(RetryCallback, RetryState) * @param retryCallback the {@link RetryCallback} * @param recoveryCallback the {@link RecoveryCallback} * @param retryState the {@link RetryState} */ @Override public final <T, E extends Throwable> T execute(RetryCallback<T, E> retryCallback, RecoveryCallback<T> recoveryCallback, RetryState retryState) throws E, ExhaustedRetryException { return doExecute(retryCallback, recoveryCallback, retryState); }
/** * Keep executing the callback until it either succeeds or the policy dictates that we * stop, in which case the most recent exception thrown by the callback will be * rethrown. * * @see RetryOperations#execute(RetryCallback) * @param retryCallback the {@link RetryCallback} * * @throws TerminatedRetryException if the retry has been manually terminated by a * listener. */ @Override public final <T, E extends Throwable> T execute(RetryCallback<T, E> retryCallback) throws E { return doExecute(retryCallback, null, null); }