Package io.temporal.internal.retryer
Class GrpcRetryer
- java.lang.Object
-
- io.temporal.internal.retryer.GrpcRetryer
-
public final class GrpcRetryer extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
GrpcRetryer.RetryableFunc<R,E extends java.lang.Throwable>
static interface
GrpcRetryer.RetryableProc<E extends java.lang.Throwable>
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T extends java.lang.Throwable>
voidretry(RpcRetryOptions options, GrpcRetryer.RetryableProc<T> r)
static <R,T extends java.lang.Throwable>
RretryWithResult(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)
-
-
-
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)
-
-