public class ActivityTaskStartedEventAttributes extends Object implements Serializable
Provides details of the ActivityTaskStarted
event.
Constructor and Description |
---|
ActivityTaskStartedEventAttributes() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getIdentity()
Identity of the worker that was assigned this task.
|
Long |
getScheduledEventId()
The id of the
ActivityTaskScheduled event that was
recorded when this activity task was scheduled. |
int |
hashCode() |
void |
setIdentity(String identity)
Identity of the worker that was assigned this task.
|
void |
setScheduledEventId(Long scheduledEventId)
The id of the
ActivityTaskScheduled event that was
recorded when this activity task was scheduled. |
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ActivityTaskStartedEventAttributes |
withIdentity(String identity)
Identity of the worker that was assigned this task.
|
ActivityTaskStartedEventAttributes |
withScheduledEventId(Long scheduledEventId)
The id of the
ActivityTaskScheduled event that was
recorded when this activity task was scheduled. |
public String getIdentity()
Constraints:
Length: 0 - 256
public void setIdentity(String identity)
Constraints:
Length: 0 - 256
identity
- Identity of the worker that was assigned this task. This aids
diagnostics when problems arise. The form of this identity is user
defined.public ActivityTaskStartedEventAttributes withIdentity(String identity)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 256
identity
- Identity of the worker that was assigned this task. This aids
diagnostics when problems arise. The form of this identity is user
defined.public Long getScheduledEventId()
ActivityTaskScheduled
event that was
recorded when this activity task was scheduled. This information can
be useful for diagnosing problems by tracing back the chain of events
leading up to this event.ActivityTaskScheduled
event that was
recorded when this activity task was scheduled. This information can
be useful for diagnosing problems by tracing back the chain of events
leading up to this event.public void setScheduledEventId(Long scheduledEventId)
ActivityTaskScheduled
event that was
recorded when this activity task was scheduled. This information can
be useful for diagnosing problems by tracing back the chain of events
leading up to this event.scheduledEventId
- The id of the ActivityTaskScheduled
event that was
recorded when this activity task was scheduled. This information can
be useful for diagnosing problems by tracing back the chain of events
leading up to this event.public ActivityTaskStartedEventAttributes withScheduledEventId(Long scheduledEventId)
ActivityTaskScheduled
event that was
recorded when this activity task was scheduled. This information can
be useful for diagnosing problems by tracing back the chain of events
leading up to this event.
Returns a reference to this object so that method calls can be chained together.
scheduledEventId
- The id of the ActivityTaskScheduled
event that was
recorded when this activity task was scheduled. This information can
be useful for diagnosing problems by tracing back the chain of events
leading up to this event.public String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.