public final class GrpcRetryer
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
GrpcRetryer.RetryableFunc<R,E extends java.lang.Throwable> |
static interface |
GrpcRetryer.RetryableProc<E extends java.lang.Throwable> |
Modifier and Type | Field and Description |
---|---|
static RpcRetryOptions |
DEFAULT_SERVICE_OPERATION_RETRY_OPTIONS |
Modifier and Type | Method and Description |
---|---|
static <T extends java.lang.Throwable> |
retry(RpcRetryOptions options,
GrpcRetryer.RetryableProc<T> r) |
static <R,T extends java.lang.Throwable> |
retryWithResult(RpcRetryOptions options,
GrpcRetryer.RetryableFunc<R,T> r) |
static <R> java.util.concurrent.CompletableFuture<R> |
retryWithResultAsync(RpcRetryOptions options,
java.util.function.Supplier<java.util.concurrent.CompletableFuture<R>> function) |
public static final RpcRetryOptions DEFAULT_SERVICE_OPERATION_RETRY_OPTIONS
public static <T extends java.lang.Throwable> void retry(RpcRetryOptions options, GrpcRetryer.RetryableProc<T> r) throws T extends java.lang.Throwable
T extends java.lang.Throwable
public static <R,T extends java.lang.Throwable> R retryWithResult(RpcRetryOptions options, GrpcRetryer.RetryableFunc<R,T> r) throws T extends java.lang.Throwable
T extends java.lang.Throwable
public static <R> java.util.concurrent.CompletableFuture<R> retryWithResultAsync(RpcRetryOptions options, java.util.function.Supplier<java.util.concurrent.CompletableFuture<R>> function)