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(RespondActivityTaskCompletedRequest taskCompleted,
ActivityTaskHandler.Result.TaskFailedResult taskFailed,
RespondActivityTaskCanceledRequest taskCancelled)
Only zero (manual activity completion) or one request is allowed.
|
Modifier and Type | Method and Description |
---|---|
int |
getAttempt() |
java.time.Duration |
getBackoff() |
RespondActivityTaskCanceledRequest |
getTaskCancelled() |
RespondActivityTaskCompletedRequest |
getTaskCompleted() |
ActivityTaskHandler.Result.TaskFailedResult |
getTaskFailedResult() |
void |
setAttempt(int attempt) |
void |
setBackoff(java.time.Duration backoff) |
public Result(RespondActivityTaskCompletedRequest taskCompleted, ActivityTaskHandler.Result.TaskFailedResult taskFailed, RespondActivityTaskCanceledRequest taskCancelled)
public RespondActivityTaskCompletedRequest getTaskCompleted()
public ActivityTaskHandler.Result.TaskFailedResult getTaskFailedResult()
public RespondActivityTaskCanceledRequest getTaskCancelled()
public void setAttempt(int attempt)
public int getAttempt()
public void setBackoff(java.time.Duration backoff)
public java.time.Duration getBackoff()