Class Retrier


  • public class Retrier
    extends java.lang.Object
    • Method Detail

      • withParams

        public static Retrier withParams​(int maxAttempts,
                                         int intervalMs)
      • execute

        public <T> T execute​(Retrier.ThrowingSupplier<T> supplier)
                      throws java.io.IOException
        Throws:
        java.io.IOException
      • execute

        public void execute​(Retrier.ThrowingRunnable runnable)
                     throws java.io.IOException
        Throws:
        java.io.IOException