Class NexusOperationCancellationInfo

java.lang.Object
io.temporal.client.NexusOperationCancellationInfo

@Experimental public final class NexusOperationCancellationInfo extends Object
Information about a cancellation request issued against a standalone Nexus operation execution. Returned by NexusOperationExecutionDescription.getCancellationInfo().
  • Method Details

    • getRawInfo

      @Nonnull public io.temporal.api.nexus.v1.NexusOperationExecutionCancellationInfo getRawInfo()
      The raw protobuf info returned by the server.
    • getRequestedTime

      @Nullable public Instant 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

      @Nullable public Instant getLastAttemptCompleteTime()
      Time the last cancel-delivery attempt completed.
    • getLastAttemptFailure

      @Nullable public Exception getLastAttemptFailure()
      Failure from the last cancel-delivery attempt. null if no failure has occurred yet.
    • getNextAttemptScheduleTime

      @Nullable public Instant getNextAttemptScheduleTime()
      Time when the next cancel-delivery attempt is scheduled.
    • getBlockedReason

      @Nullable public String getBlockedReason()
      Additional context for why cancel delivery is blocked. Set only when getState() indicates a blocked state.
    • getReason

      @Nullable public String getReason()
      The human-readable reason supplied with the original cancel request, if any.