Class ActivityExecutionDescription
java.lang.Object
io.temporal.client.ActivityExecutionMetadata
io.temporal.client.ActivityExecutionDescription
Detailed information about a standalone activity execution, returned by
UntypedActivityHandle.describe().-
Constructor Summary
ConstructorsConstructorDescriptionActivityExecutionDescription(io.temporal.api.activity.v1.ActivityExecutionInfo info, DataConverter dataConverter, String namespace) -
Method Summary
Modifier and TypeMethodDescriptionintCurrent attempt number (starts at 1).Reason that was provided when cancellation was requested.Current or next retry interval.When the activity will time out (scheduled time + scheduleToCloseTimeout).<V> Optional<V> getHeartbeatDetails(Class<V> valueType) Deserializes the last heartbeat details into the given type.<V> Optional<V> getHeartbeatDetails(Class<V> valueType, Type genericType) Deserializes the last heartbeat details into the given generic type.Maximum allowed time between heartbeats.Time the last attempt completed (succeeded or failed).Failure details from the last failed attempt.Time the last heartbeat was recorded.Time the last attempt was started.Identity of the worker that last processed this activity.Time when the next retry attempt will be scheduled.Priority hint for this activity.io.temporal.api.activity.v1.ActivityExecutionInfoThe raw protobuf info returned by the server for this activity execution.Retry policy for this activity.io.temporal.api.enums.v1.PendingActivityStateDetailed run state (e.g.Total time the caller is willing to wait for the activity to complete, including retries.Maximum time the task may wait in the task queue.Maximum time for a single attempt.Fixed details set when the activity was started.Fixed summary set when the activity was started.The deployment version of the worker that last processed this activity.booleanWhether heartbeat details were recorded for the last attempt.Methods inherited from class io.temporal.client.ActivityExecutionMetadata
equals, fromListInfo, getActivityId, getActivityRunId, getActivityType, getCloseTime, getExecutionDuration, getRawListInfo, getScheduledTime, getSearchAttributes, getStatus, getTaskQueue, hashCode, toString
-
Constructor Details
-
ActivityExecutionDescription
public ActivityExecutionDescription(io.temporal.api.activity.v1.ActivityExecutionInfo info, DataConverter dataConverter, String namespace)
-
-
Method Details
-
getRawInfo
@Nonnull public io.temporal.api.activity.v1.ActivityExecutionInfo getRawInfo()The raw protobuf info returned by the server for this activity execution. -
getAttempt
public int getAttempt()Current attempt number (starts at 1). -
getCanceledReason
Reason that was provided when cancellation was requested.nullif not cancelled or no reason was given. -
getCurrentRetryInterval
Current or next retry interval.nullif no retries are configured or allowed. -
getExpirationTime
When the activity will time out (scheduled time + scheduleToCloseTimeout). -
getHeartbeatTimeout
Maximum allowed time between heartbeats. -
getLastAttemptCompleteTime
Time the last attempt completed (succeeded or failed). -
getLastHeartbeatTime
Time the last heartbeat was recorded. -
getLastStartedTime
Time the last attempt was started. -
getLastFailure
Failure details from the last failed attempt.nullif no failure has occurred. -
getLastWorkerIdentity
Identity of the worker that last processed this activity. -
getNextAttemptScheduleTime
Time when the next retry attempt will be scheduled. -
getRetryOptions
Retry policy for this activity. -
getRunState
@Nonnull public io.temporal.api.enums.v1.PendingActivityState getRunState()Detailed run state (e.g. scheduled, started, backing off). Only meaningful whenActivityExecutionMetadata.getStatus()isActivityExecutionStatus.ACTIVITY_EXECUTION_STATUS_RUNNING. -
getScheduleToCloseTimeout
Total time the caller is willing to wait for the activity to complete, including retries. -
getScheduleToStartTimeout
Maximum time the task may wait in the task queue. -
getStartToCloseTimeout
Maximum time for a single attempt. -
hasHeartbeatDetails
public boolean hasHeartbeatDetails()Whether heartbeat details were recorded for the last attempt. -
getHeartbeatDetails
Deserializes the last heartbeat details into the given type. ReturnsOptional.empty()if no heartbeat details are present.- Parameters:
valueType- the class to deserialize the heartbeat details into
-
getHeartbeatDetails
Deserializes the last heartbeat details into the given generic type. ReturnsOptional.empty()if no heartbeat details are present.- Parameters:
valueType- the class to deserialize the heartbeat details intogenericType- the generic type for deserialization; may equalvalueType
-
getWorkerDeploymentVersion
The deployment version of the worker that last processed this activity.nullif not available. -
getPriority
Priority hint for this activity.nullif not set. -
getStaticSummary
Fixed summary set when the activity was started. Decoded from UserMetadata on each call; cache the result if called multiple times. -
getStaticDetails
Fixed details set when the activity was started. Decoded from UserMetadata on each call; cache the result if called multiple times.
-