Class ActivityTaskHandler.Result

  • Enclosing interface:
    ActivityTaskHandler

    public static final class ActivityTaskHandler.Result
    extends java.lang.Object
    • Constructor Detail

      • Result

        public Result​(java.lang.String activityId,
                      io.temporal.api.workflowservice.v1.RespondActivityTaskCompletedRequest taskCompleted,
                      ActivityTaskHandler.Result.TaskFailedResult taskFailed,
                      io.temporal.api.workflowservice.v1.RespondActivityTaskCanceledRequest taskCanceled,
                      io.temporal.serviceclient.RpcRetryOptions requestRetryOptions,
                      boolean manualCompletion)
        Only zero (manual activity completion) or one request is allowed. Task token and identity fields shouldn't be filled in. Retry options are the service call. These options override the default ones set on the activity worker.
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getActivityId

        public java.lang.String getActivityId()
      • getTaskCompleted

        public io.temporal.api.workflowservice.v1.RespondActivityTaskCompletedRequest getTaskCompleted()
      • getTaskCanceled

        public io.temporal.api.workflowservice.v1.RespondActivityTaskCanceledRequest getTaskCanceled()
      • getRequestRetryOptions

        public io.temporal.serviceclient.RpcRetryOptions getRequestRetryOptions()
      • setAttempt

        public void setAttempt​(int attempt)
      • getAttempt

        public int getAttempt()
      • setBackoff

        public void setBackoff​(java.time.Duration backoff)
      • getBackoff

        public java.time.Duration getBackoff()
      • isManualCompletion

        public boolean isManualCompletion()