Class ActivityTaskScheduledEventAttributes
- All Implemented Interfaces:
Serializable
,Cloneable
Provides details of the ActivityTaskScheduled
event.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The unique ID of the activity task.The type of the activity task.Optional. Data attached to the event that can be used by the decider in subsequent workflow tasks.The ID of theDecisionTaskCompleted
event corresponding to the decision that resulted in the scheduling of this activity task.The maximum time before which the worker processing this task must report progress by calling RecordActivityTaskHeartbeat.getInput()
The input provided to the activity task.The maximum amount of time for this activity task.The maximum amount of time the activity task can wait to be assigned to a worker.The maximum amount of time a worker may take to process the activity task.The task list in which the activity task has been scheduled.Optional. The priority to assign to the scheduled activity task.int
hashCode()
void
setActivityId
(String activityId) The unique ID of the activity task.void
setActivityType
(ActivityType activityType) The type of the activity task.void
setControl
(String control) Optional. Data attached to the event that can be used by the decider in subsequent workflow tasks.void
setDecisionTaskCompletedEventId
(Long decisionTaskCompletedEventId) The ID of theDecisionTaskCompleted
event corresponding to the decision that resulted in the scheduling of this activity task.void
setHeartbeatTimeout
(String heartbeatTimeout) The maximum time before which the worker processing this task must report progress by calling RecordActivityTaskHeartbeat.void
The input provided to the activity task.void
setScheduleToCloseTimeout
(String scheduleToCloseTimeout) The maximum amount of time for this activity task.void
setScheduleToStartTimeout
(String scheduleToStartTimeout) The maximum amount of time the activity task can wait to be assigned to a worker.void
setStartToCloseTimeout
(String startToCloseTimeout) The maximum amount of time a worker may take to process the activity task.void
setTaskList
(TaskList taskList) The task list in which the activity task has been scheduled.void
setTaskPriority
(String taskPriority) Optional. The priority to assign to the scheduled activity task.toString()
Returns a string representation of this object; useful for testing and debugging.withActivityId
(String activityId) The unique ID of the activity task.withActivityType
(ActivityType activityType) The type of the activity task.withControl
(String control) Optional. Data attached to the event that can be used by the decider in subsequent workflow tasks.withDecisionTaskCompletedEventId
(Long decisionTaskCompletedEventId) The ID of theDecisionTaskCompleted
event corresponding to the decision that resulted in the scheduling of this activity task.withHeartbeatTimeout
(String heartbeatTimeout) The maximum time before which the worker processing this task must report progress by calling RecordActivityTaskHeartbeat.The input provided to the activity task.withScheduleToCloseTimeout
(String scheduleToCloseTimeout) The maximum amount of time for this activity task.withScheduleToStartTimeout
(String scheduleToStartTimeout) The maximum amount of time the activity task can wait to be assigned to a worker.withStartToCloseTimeout
(String startToCloseTimeout) The maximum amount of time a worker may take to process the activity task.withTaskList
(TaskList taskList) The task list in which the activity task has been scheduled.withTaskPriority
(String taskPriority) Optional. The priority to assign to the scheduled activity task.
-
Constructor Details
-
ActivityTaskScheduledEventAttributes
public ActivityTaskScheduledEventAttributes()
-
-
Method Details
-
setActivityType
The type of the activity task.
- Parameters:
activityType
- The type of the activity task.
-
getActivityType
The type of the activity task.
- Returns:
- The type of the activity task.
-
withActivityType
The type of the activity task.
- Parameters:
activityType
- The type of the activity task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setActivityId
The unique ID of the activity task.
- Parameters:
activityId
- The unique ID of the activity task.
-
getActivityId
The unique ID of the activity task.
- Returns:
- The unique ID of the activity task.
-
withActivityId
The unique ID of the activity task.
- Parameters:
activityId
- The unique ID of the activity task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setInput
The input provided to the activity task.
- Parameters:
input
- The input provided to the activity task.
-
getInput
The input provided to the activity task.
- Returns:
- The input provided to the activity task.
-
withInput
The input provided to the activity task.
- Parameters:
input
- The input provided to the activity task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setControl
Optional. Data attached to the event that can be used by the decider in subsequent workflow tasks. This data is not sent to the activity.
- Parameters:
control
- Optional.
-
getControl
Optional. Data attached to the event that can be used by the decider in subsequent workflow tasks. This data is not sent to the activity.
- Returns:
- Optional.
-
withControl
Optional. Data attached to the event that can be used by the decider in subsequent workflow tasks. This data is not sent to the activity.
- Parameters:
control
- Optional.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setScheduleToStartTimeout
The maximum amount of time the activity task can wait to be assigned to a worker.
- Parameters:
scheduleToStartTimeout
- The maximum amount of time the activity task can wait to be assigned to a worker.
-
getScheduleToStartTimeout
The maximum amount of time the activity task can wait to be assigned to a worker.
- Returns:
- The maximum amount of time the activity task can wait to be assigned to a worker.
-
withScheduleToStartTimeout
public ActivityTaskScheduledEventAttributes withScheduleToStartTimeout(String scheduleToStartTimeout) The maximum amount of time the activity task can wait to be assigned to a worker.
- Parameters:
scheduleToStartTimeout
- The maximum amount of time the activity task can wait to be assigned to a worker.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setScheduleToCloseTimeout
The maximum amount of time for this activity task.
- Parameters:
scheduleToCloseTimeout
- The maximum amount of time for this activity task.
-
getScheduleToCloseTimeout
The maximum amount of time for this activity task.
- Returns:
- The maximum amount of time for this activity task.
-
withScheduleToCloseTimeout
public ActivityTaskScheduledEventAttributes withScheduleToCloseTimeout(String scheduleToCloseTimeout) The maximum amount of time for this activity task.
- Parameters:
scheduleToCloseTimeout
- The maximum amount of time for this activity task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setStartToCloseTimeout
The maximum amount of time a worker may take to process the activity task.
- Parameters:
startToCloseTimeout
- The maximum amount of time a worker may take to process the activity task.
-
getStartToCloseTimeout
The maximum amount of time a worker may take to process the activity task.
- Returns:
- The maximum amount of time a worker may take to process the activity task.
-
withStartToCloseTimeout
The maximum amount of time a worker may take to process the activity task.
- Parameters:
startToCloseTimeout
- The maximum amount of time a worker may take to process the activity task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setTaskList
The task list in which the activity task has been scheduled.
- Parameters:
taskList
- The task list in which the activity task has been scheduled.
-
getTaskList
The task list in which the activity task has been scheduled.
- Returns:
- The task list in which the activity task has been scheduled.
-
withTaskList
The task list in which the activity task has been scheduled.
- Parameters:
taskList
- The task list in which the activity task has been scheduled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setTaskPriority
Optional. The priority to assign to the scheduled activity task. If set, this will override any default priority value that was assigned when the activity type was registered.
Valid values are integers that range from Java's
Integer.MIN_VALUE
(-2147483648) toInteger.MAX_VALUE
(2147483647). Higher numbers indicate higher priority.For more information about setting task priority, see Setting Task Priority in the Amazon Simple Workflow Developer Guide.
- Parameters:
taskPriority
- Optional. The priority to assign to the scheduled activity task. If set, this will override any default priority value that was assigned when the activity type was registered.Valid values are integers that range from Java's
Integer.MIN_VALUE
(-2147483648) toInteger.MAX_VALUE
(2147483647). Higher numbers indicate higher priority.For more information about setting task priority, see Setting Task Priority in the Amazon Simple Workflow Developer Guide
-
getTaskPriority
Optional. The priority to assign to the scheduled activity task. If set, this will override any default priority value that was assigned when the activity type was registered.
Valid values are integers that range from Java's
Integer.MIN_VALUE
(-2147483648) toInteger.MAX_VALUE
(2147483647). Higher numbers indicate higher priority.For more information about setting task priority, see Setting Task Priority in the Amazon Simple Workflow Developer Guide.
- Returns:
- Optional. The priority to assign to the scheduled activity
task. If set, this will override any default priority value that
was assigned when the activity type was registered.
Valid values are integers that range from Java's
Integer.MIN_VALUE
(-2147483648) toInteger.MAX_VALUE
(2147483647). Higher numbers indicate higher priority.For more information about setting task priority, see Setting Task Priority in the Amazon Simple Workflow Developer Guide
-
withTaskPriority
Optional. The priority to assign to the scheduled activity task. If set, this will override any default priority value that was assigned when the activity type was registered.
Valid values are integers that range from Java's
Integer.MIN_VALUE
(-2147483648) toInteger.MAX_VALUE
(2147483647). Higher numbers indicate higher priority.For more information about setting task priority, see Setting Task Priority in the Amazon Simple Workflow Developer Guide.
- Parameters:
taskPriority
- Optional. The priority to assign to the scheduled activity task. If set, this will override any default priority value that was assigned when the activity type was registered.Valid values are integers that range from Java's
Integer.MIN_VALUE
(-2147483648) toInteger.MAX_VALUE
(2147483647). Higher numbers indicate higher priority.For more information about setting task priority, see Setting Task Priority in the Amazon Simple Workflow Developer Guide
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDecisionTaskCompletedEventId
The ID of the
DecisionTaskCompleted
event corresponding to the decision that resulted in the scheduling of this activity task. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.- Parameters:
decisionTaskCompletedEventId
- The ID of theDecisionTaskCompleted
event corresponding to the decision that resulted in the scheduling of this activity task. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
-
getDecisionTaskCompletedEventId
The ID of the
DecisionTaskCompleted
event corresponding to the decision that resulted in the scheduling of this activity task. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.- Returns:
- The ID of the
DecisionTaskCompleted
event corresponding to the decision that resulted in the scheduling of this activity task. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
-
withDecisionTaskCompletedEventId
public ActivityTaskScheduledEventAttributes withDecisionTaskCompletedEventId(Long decisionTaskCompletedEventId) The ID of the
DecisionTaskCompleted
event corresponding to the decision that resulted in the scheduling of this activity task. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.- Parameters:
decisionTaskCompletedEventId
- The ID of theDecisionTaskCompleted
event corresponding to the decision that resulted in the scheduling of this activity task. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setHeartbeatTimeout
The maximum time before which the worker processing this task must report progress by calling RecordActivityTaskHeartbeat. If the timeout is exceeded, the activity task is automatically timed out. If the worker subsequently attempts to record a heartbeat or return a result, it will be ignored.
- Parameters:
heartbeatTimeout
- The maximum time before which the worker processing this task must report progress by calling RecordActivityTaskHeartbeat. If the timeout is exceeded, the activity task is automatically timed out. If the worker subsequently attempts to record a heartbeat or return a result, it will be ignored.
-
getHeartbeatTimeout
The maximum time before which the worker processing this task must report progress by calling RecordActivityTaskHeartbeat. If the timeout is exceeded, the activity task is automatically timed out. If the worker subsequently attempts to record a heartbeat or return a result, it will be ignored.
- Returns:
- The maximum time before which the worker processing this task must report progress by calling RecordActivityTaskHeartbeat. If the timeout is exceeded, the activity task is automatically timed out. If the worker subsequently attempts to record a heartbeat or return a result, it will be ignored.
-
withHeartbeatTimeout
The maximum time before which the worker processing this task must report progress by calling RecordActivityTaskHeartbeat. If the timeout is exceeded, the activity task is automatically timed out. If the worker subsequently attempts to record a heartbeat or return a result, it will be ignored.
- Parameters:
heartbeatTimeout
- The maximum time before which the worker processing this task must report progress by calling RecordActivityTaskHeartbeat. If the timeout is exceeded, the activity task is automatically timed out. If the worker subsequently attempts to record a heartbeat or return a result, it will be ignored.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-