public static final class ActivityTaskHandler.Result
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ActivityTaskHandler.Result.TaskFailedResult |
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getActivityId() |
int |
getAttempt() |
java.time.Duration |
getBackoff() |
io.temporal.serviceclient.RpcRetryOptions |
getRequestRetryOptions() |
io.temporal.api.workflowservice.v1.RespondActivityTaskCanceledRequest |
getTaskCanceled() |
io.temporal.api.workflowservice.v1.RespondActivityTaskCompletedRequest |
getTaskCompleted() |
ActivityTaskHandler.Result.TaskFailedResult |
getTaskFailed() |
boolean |
isManualCompletion() |
void |
setAttempt(int attempt) |
void |
setBackoff(java.time.Duration backoff) |
java.lang.String |
toString() |
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)
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getActivityId()
public io.temporal.api.workflowservice.v1.RespondActivityTaskCompletedRequest getTaskCompleted()
public ActivityTaskHandler.Result.TaskFailedResult getTaskFailed()
public io.temporal.api.workflowservice.v1.RespondActivityTaskCanceledRequest getTaskCanceled()
public io.temporal.serviceclient.RpcRetryOptions getRequestRetryOptions()
public void setAttempt(int attempt)
public int getAttempt()
public void setBackoff(java.time.Duration backoff)
public java.time.Duration getBackoff()
public boolean isManualCompletion()