Interface InternalActivityExecutionContext

All Superinterfaces:
ActivityExecutionContext

public interface InternalActivityExecutionContext extends ActivityExecutionContext
Internal context object passed to an Activity implementation, providing more internal details than the user facing ActivityExecutionContext.
  • Method Details

    • getLastHeartbeatValue

      Object getLastHeartbeatValue()
    • 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.