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 boolean
areAttemptsReached(RetryOptions o, long attempt)
static boolean
isDeadlineReached(io.grpc.Deadline deadline, long sleepTimeMs)
static boolean
isNotRetryable(RetryOptions o, java.lang.String type)
static boolean
isNotRetryable(RetryOptions o, java.lang.Throwable e)
static RetryOptions
toRetryOptions(io.temporal.api.common.v1.RetryPolicy retryPolicy)
-
-
-
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)
-
-