Class RetryOptionsUtils


  • public class RetryOptionsUtils
    extends java.lang.Object
    • Constructor Detail

      • RetryOptionsUtils

        public RetryOptionsUtils()
    • 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)