Class TimerStartedEventAttributes
- All Implemented Interfaces:
Serializable
,Cloneable
Provides details of the TimerStarted
event.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
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 task that resulted in theStartTimer
decision for this activity task.The duration of time after which the timer will fire.The unique ID of the timer that was started.int
hashCode()
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 task that resulted in theStartTimer
decision for this activity task.void
setStartToFireTimeout
(String startToFireTimeout) The duration of time after which the timer will fire.void
setTimerId
(String timerId) The unique ID of the timer that was started.toString()
Returns a string representation of this object; useful for testing and debugging.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 task that resulted in theStartTimer
decision for this activity task.withStartToFireTimeout
(String startToFireTimeout) The duration of time after which the timer will fire.withTimerId
(String timerId) The unique ID of the timer that was started.
-
Constructor Details
-
TimerStartedEventAttributes
public TimerStartedEventAttributes()
-
-
Method Details
-
setTimerId
The unique ID of the timer that was started.
- Parameters:
timerId
- The unique ID of the timer that was started.
-
getTimerId
The unique ID of the timer that was started.
- Returns:
- The unique ID of the timer that was started.
-
withTimerId
The unique ID of the timer that was started.
- Parameters:
timerId
- The unique ID of the timer that was started.- 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.
- Parameters:
control
- Optional.
-
getControl
Optional. Data attached to the event that can be used by the decider in subsequent workflow tasks.
- Returns:
- Optional.
-
withControl
Optional. Data attached to the event that can be used by the decider in subsequent workflow tasks.
- Parameters:
control
- Optional.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setStartToFireTimeout
The duration of time after which the timer will fire.
The duration is specified in seconds; an integer greater than or equal to 0.
- Parameters:
startToFireTimeout
- The duration of time after which the timer will fire.The duration is specified in seconds; an integer greater than or equal to 0.
-
getStartToFireTimeout
The duration of time after which the timer will fire.
The duration is specified in seconds; an integer greater than or equal to 0.
- Returns:
- The duration of time after which the timer will fire.
The duration is specified in seconds; an integer greater than or equal to 0.
-
withStartToFireTimeout
The duration of time after which the timer will fire.
The duration is specified in seconds; an integer greater than or equal to 0.
- Parameters:
startToFireTimeout
- The duration of time after which the timer will fire.The duration is specified in seconds; an integer greater than or equal to 0.
- 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 task that resulted in theStartTimer
decision for 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 task that resulted in theStartTimer
decision for 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 task that resulted in theStartTimer
decision for 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 task that resulted in theStartTimer
decision for 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 TimerStartedEventAttributes withDecisionTaskCompletedEventId(Long decisionTaskCompletedEventId) The ID of the
DecisionTaskCompleted
event corresponding to the decision task that resulted in theStartTimer
decision for 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 task that resulted in theStartTimer
decision for 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.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-