Interface Retry<T>
- All Known Implementing Classes:
LinearRetry
public interface Retry<T>
-
Method Summary
-
Method Details
-
canRetry
boolean canRetry()Check that another retry can be attempted.- Returns:
- true, if another retry is possible
-
run
Start attempting to run provided task.- Returns:
- task's return value
- Throws:
Exception- on task failure TimeoutException on task timeout
-