Package com.uber.cadence.activity
Interface ActivityTask
-
public interface ActivityTask
The information about the activity task that the current activity is handling. UseActivity.getTask()
to access.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getActivityId()
ID of the activity.java.lang.String
getActivityType()
Type of the activity.int
getAttempt()
byte[]
getHeartbeatDetails()
java.time.Duration
getHeartbeatTimeout()
long
getScheduledTimestamp()
Time when the activity was initially scheduled by the workflow.java.time.Duration
getScheduleToCloseTimeout()
java.time.Duration
getStartToCloseTimeout()
byte[]
getTaskToken()
A correlation token that can be used to complete the activity asynchronously throughActivityCompletionClient.complete(byte[], Object)
.java.lang.String
getWorkflowDomain()
WorkflowExecution
getWorkflowExecution()
ID and RunID of the workflow that scheduled the activity.WorkflowType
getWorkflowType()
-
-
-
Method Detail
-
getTaskToken
byte[] getTaskToken()
A correlation token that can be used to complete the activity asynchronously throughActivityCompletionClient.complete(byte[], Object)
.
-
getWorkflowExecution
WorkflowExecution getWorkflowExecution()
ID and RunID of the workflow that scheduled the activity.
-
getActivityId
java.lang.String getActivityId()
ID of the activity. This ID can be used to complete the activity asynchronously throughActivityCompletionClient.complete(WorkflowExecution, String, Object)
.
-
getActivityType
java.lang.String getActivityType()
Type of the activity.
-
getScheduledTimestamp
long getScheduledTimestamp()
Time when the activity was initially scheduled by the workflow.- Returns:
- timestamp in milliseconds
-
getScheduleToCloseTimeout
java.time.Duration getScheduleToCloseTimeout()
-
getStartToCloseTimeout
java.time.Duration getStartToCloseTimeout()
-
getHeartbeatTimeout
java.time.Duration getHeartbeatTimeout()
-
getHeartbeatDetails
byte[] getHeartbeatDetails()
-
getWorkflowType
WorkflowType getWorkflowType()
-
getWorkflowDomain
java.lang.String getWorkflowDomain()
-
getAttempt
int getAttempt()
-
-