Class NexusOperationExecutionDescription
java.lang.Object
io.temporal.client.NexusOperationExecutionMetadata
io.temporal.client.NexusOperationExecutionDescription
@Experimental
public final class NexusOperationExecutionDescription
extends NexusOperationExecutionMetadata
Detailed information about a standalone Nexus operation execution, returned by
UntypedNexusOperationHandle.describe().-
Constructor Summary
ConstructorsConstructorDescriptionNexusOperationExecutionDescription(io.temporal.api.workflowservice.v1.DescribeNexusOperationExecutionResponse response, DataConverter dataConverter, String namespace) -
Method Summary
Modifier and TypeMethodDescriptionintCurrent attempt number for the start request (starts at 1).Additional context for why the operation is blocked.Cancellation details if cancellation was requested;nullotherwise.Scheduled time plus schedule-to-close timeout.Operation failure as a thrown-style exception.Server-generated request ID used as an idempotency token when submitting the start request to the operation handler.Identity of the client that started this operation.<V> Optional<V> Deserializes the operation input into the given type.<V> Optional<V> Deserializes the operation input into the given generic type.Time the last start-request attempt completed (succeeded or failed).Failure from the last start-request attempt.Time when the next start-request attempt will be scheduled.Operation token returned by the handler; set only for asynchronous operations after start.io.temporal.api.nexus.v1.NexusOperationExecutionInfoThe raw protobuf info returned by the server for this operation execution.io.temporal.api.workflowservice.v1.DescribeNexusOperationExecutionResponseUnderlying proto response.<V> Optional<V> Deserializes the operation's success result.<V> Optional<V> Deserializes the operation's success result into the given generic type.io.temporal.api.enums.v1.PendingNexusOperationStateDetailed run state (e.g.Total time the caller is willing to wait for the operation to complete, including retries.Maximum time the start request may wait before being delivered to the handler.Maximum time for a single start-request attempt.Fixed details attached when the operation was started, decoded fromUserMetadata.Fixed summary attached when the operation was started, decoded fromUserMetadata.booleanhasInput()Whether the operation input payload is present on this description.booleanWhether the operation's success result is present.Methods inherited from class io.temporal.client.NexusOperationExecutionMetadata
equals, fromListInfo, getCloseTime, getEndpoint, getExecutionDuration, getOperation, getOperationId, getRawListInfo, getRunId, getScheduledTime, getSearchAttributes, getService, getStateTransitionCount, getStatus, hashCode, toString
-
Constructor Details
-
NexusOperationExecutionDescription
public NexusOperationExecutionDescription(io.temporal.api.workflowservice.v1.DescribeNexusOperationExecutionResponse response, DataConverter dataConverter, String namespace)
-
-
Method Details
-
getRawResponse
@Nonnull public io.temporal.api.workflowservice.v1.DescribeNexusOperationExecutionResponse getRawResponse()Underlying proto response. Exposed while the Nexus SDK surface is still experimental. -
getRawInfo
@Nonnull public io.temporal.api.nexus.v1.NexusOperationExecutionInfo getRawInfo()The raw protobuf info returned by the server for this operation execution. -
getAttempt
public int getAttempt()Current attempt number for the start request (starts at 1). -
getRunState
@Nonnull public io.temporal.api.enums.v1.PendingNexusOperationState getRunState()Detailed run state (e.g. scheduled, started, backing off). Only meaningful whenNexusOperationExecutionMetadata.getStatus()isNEXUS_OPERATION_EXECUTION_STATUS_RUNNING. -
getScheduleToCloseTimeout
Total time the caller is willing to wait for the operation to complete, including retries. -
getScheduleToStartTimeout
Maximum time the start request may wait before being delivered to the handler. -
getStartToCloseTimeout
Maximum time for a single start-request attempt. -
getExpirationTime
Scheduled time plus schedule-to-close timeout. -
getLastAttemptCompleteTime
Time the last start-request attempt completed (succeeded or failed). -
getLastAttemptFailure
Failure from the last start-request attempt.nullif no failure has occurred. -
getNextAttemptScheduleTime
Time when the next start-request attempt will be scheduled. -
getCancellationInfo
Cancellation details if cancellation was requested;nullotherwise. -
getBlockedReason
Additional context for why the operation is blocked. Set only whengetRunState()isBLOCKED. -
getHandlerRequestId
Server-generated request ID used as an idempotency token when submitting the start request to the operation handler. -
getOperationToken
Operation token returned by the handler; set only for asynchronous operations after start. -
getIdentity
Identity of the client that started this operation. -
getStaticSummary
Fixed summary attached when the operation was started, decoded fromUserMetadata. Decoded on each call; cache the result if called frequently. -
getStaticDetails
Fixed details attached when the operation was started, decoded fromUserMetadata. Decoded on each call; cache the result if called frequently. -
hasInput
public boolean hasInput()Whether the operation input payload is present on this description. Set only whenUntypedNexusOperationHandle.describe()was called withincludeInput=true. -
getInput
Deserializes the operation input into the given type. ReturnsOptional.empty()if no input is present (either the operation was started without one orincludeInputwas false on the describe call).- Parameters:
valueType- the class to deserialize the input into
-
getInput
Deserializes the operation input into the given generic type. ReturnsOptional.empty()if no input is present.- Parameters:
valueType- the class to deserialize the input intogenericType- the generic type for deserialization; may equalvalueType
-
hasResult
public boolean hasResult()Whether the operation's success result is present. Set only whenUntypedNexusOperationHandle.describe()was called withincludeOutcome=trueand the operation completed successfully. -
getResult
Deserializes the operation's success result. ReturnsOptional.empty()if no result is present (operation still running, completed with a failure, orincludeOutcomewas false).- Parameters:
valueType- the class to deserialize the result into
-
getResult
Deserializes the operation's success result into the given generic type. ReturnsOptional.empty()if no result is present.- Parameters:
valueType- the class to deserialize the result intogenericType- the generic type for deserialization; may equalvalueType
-
getFailure
Operation failure as a thrown-style exception. Returnsnullif the operation did not complete with a failure or ifincludeOutcomewas false on the describe call.
-