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 | Method and Description |
---|---|
static <T extends java.lang.Throwable> |
retry(io.temporal.serviceclient.RpcRetryOptions options,
GrpcRetryer.RetryableProc<T> r) |
static <R,T extends java.lang.Throwable> |
retryWithResult(io.temporal.serviceclient.RpcRetryOptions options,
GrpcRetryer.RetryableFunc<R,T> r) |
static <R> java.util.concurrent.CompletableFuture<R> |
retryWithResultAsync(io.temporal.serviceclient.RpcRetryOptions options,
java.util.function.Supplier<java.util.concurrent.CompletableFuture<R>> function) |
public static <T extends java.lang.Throwable> void retry(io.temporal.serviceclient.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(io.temporal.serviceclient.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(io.temporal.serviceclient.RpcRetryOptions options, java.util.function.Supplier<java.util.concurrent.CompletableFuture<R>> function)