Interface Retry<T>

  • All Known Implementing Classes:
    LinearRetry

    public interface Retry<T>
    • Method Detail

      • 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