Package ubic.gemma.core.util
Interface SimpleRetryCallable<T,E extends Exception>
-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface SimpleRetryCallable<T,E extends Exception>
An interface for work that can be retried.- Author:
- poirigui
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
call(int attempt, boolean lastAttempt)
-
-
-
Method Detail
-
call
T call(int attempt, boolean lastAttempt) throws E extends Exception
- Parameters:
attempt
- indicate the attempt number (zero for first, 1 for second, etc.)lastAttempt
- indicate if this is the last attempt, any raised exception will bubble up toSimpleRetry.execute(SimpleRetryCallable, Object what)
- Throws:
E extends Exception
-
-