Package com.norconex.commons.lang.exec
Interface Retriable<T>
- Type Parameters:
T- type of optional return value
- All Known Subinterfaces:
IRetriable<T>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Upon failure, the
run method will get
re-executed by a Retrier until successful or fails according
to the Retrier conditions.- Since:
- 3.0.0 (renamed from
IRetriable) - See Also:
-
Method Summary
-
Method Details
-
execute
Code to be executed until successful (no exception thrown).- Returns:
- optional return value
- Throws:
Exception- any exception
-