This commit is contained in:
Josh Long
2016-02-12 17:12:40 +01:00
parent cacf5d25db
commit 004d277c81
33 changed files with 163 additions and 101 deletions

View File

@@ -20,8 +20,8 @@ package org.springframework.retry;
* Callback interface for an operation that can be retried using a
* {@link RetryOperations}.
*
* @param T the type of object returned by the callback
* @param E the type of exception it declares may be thrown
* @param <T> the type of object returned by the callback
* @param <E> the type of exception it declares may be thrown
*
* @author Rob Harrop
* @author Dave Syer
@@ -34,7 +34,7 @@ public interface RetryCallback<T, E extends Throwable> {
* semantics when an operation is retried.
* @param context the current retry context.
* @return the result of the successful operation.
* @throws Throwable of type E if processing fails
* @throws E of type E if processing fails
*/
T doWithRetry(RetryContext context) throws E;
T doWithRetry(RetryContext context) throws E;
}