Class Retry.RetryAndThrowBase<ThrowsT extends java.lang.Exception>

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <RetryT extends java.lang.Exception,​ReturnT>
      ReturnT
      run​(Retry.Retryable<ReturnT,​RetryT,​ThrowsT> r)  
      <ReturnT> java.util.concurrent.CompletableFuture<ReturnT> runAsync​(java.util.function.Supplier<java.util.concurrent.CompletableFuture<ReturnT>> r, java.util.concurrent.ScheduledExecutorService executorService)  
      java.util.concurrent.CompletableFuture<java.lang.Void> runInExecutor​(java.lang.Runnable task, java.util.concurrent.ScheduledExecutorService executorService)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • run

        public <RetryT extends java.lang.Exception,​ReturnT> ReturnT run​(Retry.Retryable<ReturnT,​RetryT,​ThrowsT> r)
                                                                       throws ThrowsT extends java.lang.Exception
        Throws:
        ThrowsT extends java.lang.Exception
      • runInExecutor

        public java.util.concurrent.CompletableFuture<java.lang.Void> runInExecutor​(java.lang.Runnable task,
                                                                                    java.util.concurrent.ScheduledExecutorService executorService)
      • runAsync

        public <ReturnT> java.util.concurrent.CompletableFuture<ReturnT> runAsync​(java.util.function.Supplier<java.util.concurrent.CompletableFuture<ReturnT>> r,
                                                                                  java.util.concurrent.ScheduledExecutorService executorService)