Class NexusOperationCancellationInfo
java.lang.Object
io.temporal.client.NexusOperationCancellationInfo
Information about a cancellation request issued against a standalone Nexus operation execution.
Returned by
NexusOperationExecutionDescription.getCancellationInfo().-
Method Summary
Modifier and TypeMethodDescriptionintCurrent attempt number for delivering the cancel request to the handler.Additional context for why cancel delivery is blocked.Time the last cancel-delivery attempt completed.Failure from the last cancel-delivery attempt.Time when the next cancel-delivery attempt is scheduled.io.temporal.api.nexus.v1.NexusOperationExecutionCancellationInfoThe raw protobuf info returned by the server.The human-readable reason supplied with the original cancel request, if any.Time when cancellation was originally requested.io.temporal.api.enums.v1.NexusOperationCancellationStategetState()Current state of cancellation-request delivery to the operation handler.
-
Method Details
-
getRawInfo
@Nonnull public io.temporal.api.nexus.v1.NexusOperationExecutionCancellationInfo getRawInfo()The raw protobuf info returned by the server. -
getRequestedTime
Time when cancellation was originally requested. -
getState
@Nonnull public io.temporal.api.enums.v1.NexusOperationCancellationState getState()Current state of cancellation-request delivery to the operation handler. -
getAttempt
public int getAttempt()Current attempt number for delivering the cancel request to the handler. Represents a minimum bound — the value is incremented after the attempt completes. -
getLastAttemptCompleteTime
Time the last cancel-delivery attempt completed. -
getLastAttemptFailure
Failure from the last cancel-delivery attempt.nullif no failure has occurred yet. -
getNextAttemptScheduleTime
Time when the next cancel-delivery attempt is scheduled. -
getBlockedReason
Additional context for why cancel delivery is blocked. Set only whengetState()indicates a blocked state. -
getReason
The human-readable reason supplied with the original cancel request, if any.
-