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.
An interface for work that can be retried.
- Author:
- poirigui
-
Method Summary
-
Method Details
-
call
- 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
-