Class Retry.RetryR<T>

java.lang.Object
com.landawn.abacus.util.Retry.RetryR<T>
Enclosing class:
Retry<T>

public static final class Retry.RetryR<T> extends Object
  • Method Details

    • of

      public static Retry.RetryR<Void> of(int retryTimes, long retryIntervallInMillis, Predicate<? super RuntimeException> retryCondition)
      Parameters:
      retryTimes -
      retryIntervallInMillis -
      retryCondition -
      Returns:
    • of

      public static <R> Retry.RetryR<R> of(int retryTimes, long retryIntervallInMillis, BiPredicate<? super R,? super RuntimeException> retryCondition)
      Type Parameters:
      R -
      Parameters:
      retryTimes -
      retryIntervallInMillis -
      retryCondition -
      Returns:
    • run

      public void run(Runnable cmd)
      Parameters:
      cmd -
    • call

      public T call(Throwables.Callable<T,RuntimeException> callable)
      Parameters:
      callable -
      Returns:
      Throws:
      RuntimeException - the exception
    • iterate

      @Deprecated public <E> Iterator<E> iterate(Iterator<E> iter)
      Deprecated.
      replaced by RetryR#iterate(Iterator, int).
      Type Parameters:
      E -
      Parameters:
      iter -
      Returns:
    • iterate

      public <E> Iterator<E> iterate(Iterator<E> iter, int totalRetryTimes)
      Type Parameters:
      E -
      Parameters:
      iter -
      totalRetryTimes -
      Returns: