Package io.temporal.internal.common
Class RetryOptionsUtils
- java.lang.Object
-
- io.temporal.internal.common.RetryOptionsUtils
-
public class RetryOptionsUtils extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description RetryOptionsUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanareAttemptsReached(RetryOptions o, long attempt)static booleanisDeadlineReached(io.grpc.Deadline deadline, long sleepTimeMs)static booleanisNotRetryable(RetryOptions o, java.lang.String type)static booleanisNotRetryable(RetryOptions o, java.lang.Throwable e)static RetryOptionstoRetryOptions(io.temporal.api.common.v1.RetryPolicy retryPolicy)static io.temporal.api.common.v1.RetryPolicy.BuildertoRetryPolicy(RetryOptions retryOptions)
-
-
-
Method Detail
-
isNotRetryable
public static boolean isNotRetryable(RetryOptions o, @Nullable java.lang.Throwable e)
-
isNotRetryable
public static boolean isNotRetryable(RetryOptions o, @Nullable java.lang.String type)
-
areAttemptsReached
public static boolean areAttemptsReached(RetryOptions o, long attempt)
-
isDeadlineReached
public static boolean isDeadlineReached(@Nullable io.grpc.Deadline deadline, long sleepTimeMs)
-
toRetryOptions
public static RetryOptions toRetryOptions(io.temporal.api.common.v1.RetryPolicy retryPolicy)
-
toRetryPolicy
public static io.temporal.api.common.v1.RetryPolicy.Builder toRetryPolicy(RetryOptions retryOptions)
-
-