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