Package io.temporal.serviceclient
Class RpcRetryOptions.DoNotRetryItem
- java.lang.Object
-
- io.temporal.serviceclient.RpcRetryOptions.DoNotRetryItem
-
- Enclosing class:
- RpcRetryOptions
public static class RpcRetryOptions.DoNotRetryItem extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description DoNotRetryItem(io.grpc.Status.Code code, java.lang.Class<? extends com.google.protobuf.GeneratedMessageV3> detailsClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.grpc.Status.Code
getCode()
java.lang.Class<? extends com.google.protobuf.GeneratedMessageV3>
getDetailsClass()
-
-
-
Constructor Detail
-
DoNotRetryItem
public DoNotRetryItem(@Nonnull io.grpc.Status.Code code, @Nullable java.lang.Class<? extends com.google.protobuf.GeneratedMessageV3> detailsClass)
- Parameters:
code
- errors with this code will be considered non retryable.Status.Code.CANCELLED
andStatus.Code.DEADLINE_EXCEEDED
are always considered non-retryable.detailsClass
- If not null, only failures with thecode
and details of thisdetailsClass
class are non retryable If null, all failures with the code are non retryable.
-
-