public interface ActivityInfo
ActivityExecutionContext.getInfo()
to access.Modifier and Type | Method and Description |
---|---|
java.lang.String |
getActivityId()
ID of the activity.
|
java.lang.String |
getActivityNamespace() |
java.lang.String |
getActivityType()
Type of the activity.
|
int |
getAttempt()
Activity execution attempt starting from 0.
|
java.util.Optional<io.temporal.api.common.v1.Payloads> |
getHeartbeatDetails() |
java.time.Duration |
getHeartbeatTimeout() |
java.lang.String |
getRunId()
RunId of the workflow that scheduled the activity.
|
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 through
ActivityCompletionClient.complete(byte[], Object) . |
java.lang.String |
getWorkflowId()
WorkflowId of the workflow that scheduled the activity.
|
java.lang.String |
getWorkflowNamespace() |
java.lang.String |
getWorkflowType() |
boolean |
isLocal()
Is this activity invoked as a local activity?
|
byte[] getTaskToken()
ActivityCompletionClient.complete(byte[], Object)
.java.lang.String getWorkflowId()
java.lang.String getRunId()
java.lang.String getActivityId()
ActivityCompletionClient.complete(String, Optional, String, Object)
.java.lang.String getActivityType()
long getScheduledTimestamp()
java.time.Duration getScheduleToCloseTimeout()
java.time.Duration getStartToCloseTimeout()
java.time.Duration getHeartbeatTimeout()
java.util.Optional<io.temporal.api.common.v1.Payloads> getHeartbeatDetails()
java.lang.String getWorkflowType()
java.lang.String getWorkflowNamespace()
java.lang.String getActivityNamespace()
int getAttempt()
boolean isLocal()