public class PollForTaskResult
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Contains the output of PollForTask.
Modifier and Type | Field and Description |
---|---|
private TaskObject |
taskObject
The information needed to complete the task that is being assigned to the
task runner.
|
Constructor and Description |
---|
PollForTaskResult() |
Modifier and Type | Method and Description |
---|---|
PollForTaskResult |
clone() |
boolean |
equals(java.lang.Object obj) |
TaskObject |
getTaskObject()
The information needed to complete the task that is being assigned to the
task runner.
|
int |
hashCode() |
void |
setTaskObject(TaskObject taskObject)
The information needed to complete the task that is being assigned to the
task runner.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PollForTaskResult |
withTaskObject(TaskObject taskObject)
The information needed to complete the task that is being assigned to the
task runner.
|
private TaskObject taskObject
The information needed to complete the task that is being assigned to the
task runner. One of the fields returned in this object is
taskId
, which contains an identifier for the task being
assigned. The calling task runner uses taskId
in subsequent
calls to ReportTaskProgress and SetTaskStatus.
public void setTaskObject(TaskObject taskObject)
The information needed to complete the task that is being assigned to the
task runner. One of the fields returned in this object is
taskId
, which contains an identifier for the task being
assigned. The calling task runner uses taskId
in subsequent
calls to ReportTaskProgress and SetTaskStatus.
taskObject
- The information needed to complete the task that is being assigned
to the task runner. One of the fields returned in this object is
taskId
, which contains an identifier for the task
being assigned. The calling task runner uses taskId
in subsequent calls to ReportTaskProgress and
SetTaskStatus.public TaskObject getTaskObject()
The information needed to complete the task that is being assigned to the
task runner. One of the fields returned in this object is
taskId
, which contains an identifier for the task being
assigned. The calling task runner uses taskId
in subsequent
calls to ReportTaskProgress and SetTaskStatus.
taskId
, which contains an identifier for
the task being assigned. The calling task runner uses
taskId
in subsequent calls to
ReportTaskProgress and SetTaskStatus.public PollForTaskResult withTaskObject(TaskObject taskObject)
The information needed to complete the task that is being assigned to the
task runner. One of the fields returned in this object is
taskId
, which contains an identifier for the task being
assigned. The calling task runner uses taskId
in subsequent
calls to ReportTaskProgress and SetTaskStatus.
taskObject
- The information needed to complete the task that is being assigned
to the task runner. One of the fields returned in this object is
taskId
, which contains an identifier for the task
being assigned. The calling task runner uses taskId
in subsequent calls to ReportTaskProgress and
SetTaskStatus.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public PollForTaskResult clone()
clone
in class java.lang.Object