Class RpcRetryer


  • public final class RpcRetryer
    extends java.lang.Object
    • Field Detail

      • DEFAULT_RPC_RETRY_OPTIONS

        public static final RetryOptions DEFAULT_RPC_RETRY_OPTIONS
    • Method Detail

      • retry

        public static <T extends java.lang.Throwable> void retry​(RetryOptions options,
                                                                 RpcRetryer.RetryableProc<T> r)
                                                          throws T extends java.lang.Throwable
        Throws:
        T extends java.lang.Throwable
      • retry

        public static <T extends java.lang.Throwable> void retry​(RpcRetryer.RetryableProc<T> r)
                                                          throws T extends java.lang.Throwable
        Throws:
        T extends java.lang.Throwable
      • retryWithResult

        public static <R,​T extends java.lang.Throwable> R retryWithResult​(RetryOptions options,
                                                                                RpcRetryer.RetryableFunc<R,​T> r)
                                                                         throws T extends java.lang.Throwable
        Throws:
        T extends java.lang.Throwable
      • retryWithResultAsync

        public static <R> java.util.concurrent.CompletableFuture<R> retryWithResultAsync​(RetryOptions options,
                                                                                         java.util.function.Supplier<java.util.concurrent.CompletableFuture<R>> function)