Class GrpcRetryer
java.lang.Object
io.temporal.internal.retryer.GrpcRetryer
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic interfaceGrpcRetryer.RetryableFunc<R,E extends Throwable> static interfaceGrpcRetryer.RetryableProc<E extends Throwable> -
Constructor Summary
ConstructorsConstructorDescriptionGrpcRetryer(Supplier<GetSystemInfoResponse.Capabilities> serverCapabilities) -
Method Summary
Modifier and TypeMethodDescription<T extends Throwable>
voidretry(GrpcRetryer.RetryableProc<T> r, GrpcRetryer.GrpcRetryerOptions options) <R,T extends Throwable>
RretryWithResult(GrpcRetryer.RetryableFunc<R, T> r, GrpcRetryer.GrpcRetryerOptions options) <R> CompletableFuture<R> retryWithResultAsync(ScheduledExecutorService asyncThrottlerExecutor, Supplier<CompletableFuture<R>> function, GrpcRetryer.GrpcRetryerOptions options)
-
Constructor Details
-
GrpcRetryer
-
-
Method Details
-
retry
public <T extends Throwable> void retry(GrpcRetryer.RetryableProc<T> r, GrpcRetryer.GrpcRetryerOptions options) throws T - Throws:
T
-
retryWithResult
public <R,T extends Throwable> R retryWithResult(GrpcRetryer.RetryableFunc<R, T> r, GrpcRetryer.GrpcRetryerOptions options) throws T- Throws:
T
-
retryWithResultAsync
public <R> CompletableFuture<R> retryWithResultAsync(ScheduledExecutorService asyncThrottlerExecutor, Supplier<CompletableFuture<R>> function, GrpcRetryer.GrpcRetryerOptions options)
-