Interface Retry<T>

All Known Implementing Classes:
LinearRetry

public interface Retry<T>
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Check that another retry can be attempted.
    run()
    Start attempting to run provided task.
  • Method Details

    • canRetry

      boolean canRetry()
      Check that another retry can be attempted.
      Returns:
      true, if another retry is possible
    • run

      T run() throws Exception
      Start attempting to run provided task.
      Returns:
      task's return value
      Throws:
      Exception - on task failure TimeoutException on task timeout