Package com.norconex.commons.lang.exec
Interface IRetriable<T>
-
- Type Parameters:
T- type of optional return value
- 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 IRetriable<T>
Upon failure, therunmethod will get re-executed by aRetrieruntil successful or fails according to theRetrierconditions.- Since:
- 1.13.0
- Author:
- Pascal Essiembre
- See Also:
Retrier
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Texecute()Code to be executed until successful (no exception thrown).
-