Class GrpcRetryer


  • public final class GrpcRetryer
    extends java.lang.Object
    • Method Detail

      • retry

        public static <T extends java.lang.Throwable> void retry​(RpcRetryOptions options,
                                                                 GrpcRetryer.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​(RpcRetryOptions options,
                                                                                GrpcRetryer.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​(RpcRetryOptions options,
                                                                                         java.util.function.Supplier<java.util.concurrent.CompletableFuture<R>> function)