Interface InternalActivityExecutionContext
- All Superinterfaces:
ActivityExecutionContext
Internal context object passed to an Activity implementation, providing more internal details
than the user facing
ActivityExecutionContext.-
Method Summary
Modifier and TypeMethodDescriptionvoidMark this context as returned for async completion.booleanReturns whether the activity task's outcome was already reported to the server, for example because an oversized heartbeat failed it, so the activity's own result must not be sent.voidCancel any pending heartbeat and discard cached heartbeat details.Get the latest value ofActivityExecutionContext.heartbeat(Object).io.temporal.internal.payload.limits.PayloadLimitViolationReturns the payload limit violation that failed a heartbeat, or null.Methods inherited from interface io.temporal.activity.ActivityExecutionContext
doNotCompleteOnReturn, getCancellationToken, getHeartbeatDetails, getHeartbeatDetails, getInfo, getInstance, getLastHeartbeatDetails, getLastHeartbeatDetails, getMetricsScope, getTaskToken, getWorkflowClient, heartbeat, isDoNotCompleteOnReturn, isUseLocalManualCompletion, useLocalManualCompletion
-
Method Details
-
getLastHeartbeatValue
Object getLastHeartbeatValue()Get the latest value ofActivityExecutionContext.heartbeat(Object). -
asyncCompletionStarted
void asyncCompletionStarted()Mark this context as returned for async completion. -
cancelOutstandingHeartbeat
void cancelOutstandingHeartbeat()Cancel any pending heartbeat and discard cached heartbeat details. -
awaitTaskReported
boolean awaitTaskReported()Returns whether the activity task's outcome was already reported to the server, for example because an oversized heartbeat failed it, so the activity's own result must not be sent. Waits for a report that is still being sent. -
getPayloadLimitViolation
@Nullable io.temporal.internal.payload.limits.PayloadLimitViolation getPayloadLimitViolation()Returns the payload limit violation that failed a heartbeat, or null. Unless the task was already reported, the activity must report the violation instead of its own outcome.
-