Package io.temporal.api.nexus.v1
Interface HandlerErrorOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
HandlerError,HandlerError.Builder
@Generated(value="protoc", comments="annotations:HandlerErrorOrBuilder.java.pb.meta") public interface HandlerErrorOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetErrorType()See https://github.com/nexus-rpc/api/blob/main/SPEC.md#predefined-handler-errors.com.google.protobuf.ByteStringgetErrorTypeBytes()See https://github.com/nexus-rpc/api/blob/main/SPEC.md#predefined-handler-errors.FailuregetFailure().temporal.api.nexus.v1.Failure failure = 2;FailureOrBuildergetFailureOrBuilder().temporal.api.nexus.v1.Failure failure = 2;NexusHandlerErrorRetryBehaviorgetRetryBehavior()Retry behavior, defaults to the retry behavior of the error type as defined in the spec.intgetRetryBehaviorValue()Retry behavior, defaults to the retry behavior of the error type as defined in the spec.booleanhasFailure().temporal.api.nexus.v1.Failure failure = 2;-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getErrorType
java.lang.String getErrorType()
See https://github.com/nexus-rpc/api/blob/main/SPEC.md#predefined-handler-errors.
string error_type = 1;- Returns:
- The errorType.
-
getErrorTypeBytes
com.google.protobuf.ByteString getErrorTypeBytes()
See https://github.com/nexus-rpc/api/blob/main/SPEC.md#predefined-handler-errors.
string error_type = 1;- Returns:
- The bytes for errorType.
-
hasFailure
boolean hasFailure()
.temporal.api.nexus.v1.Failure failure = 2;- Returns:
- Whether the failure field is set.
-
getFailure
Failure getFailure()
.temporal.api.nexus.v1.Failure failure = 2;- Returns:
- The failure.
-
getFailureOrBuilder
FailureOrBuilder getFailureOrBuilder()
.temporal.api.nexus.v1.Failure failure = 2;
-
getRetryBehaviorValue
int getRetryBehaviorValue()
Retry behavior, defaults to the retry behavior of the error type as defined in the spec.
.temporal.api.enums.v1.NexusHandlerErrorRetryBehavior retry_behavior = 3;- Returns:
- The enum numeric value on the wire for retryBehavior.
-
getRetryBehavior
NexusHandlerErrorRetryBehavior getRetryBehavior()
Retry behavior, defaults to the retry behavior of the error type as defined in the spec.
.temporal.api.enums.v1.NexusHandlerErrorRetryBehavior retry_behavior = 3;- Returns:
- The retryBehavior.
-
-