Package io.temporal.payload.context
Class ActivitySerializationContext
- java.lang.Object
-
- io.temporal.payload.context.ActivitySerializationContext
-
- All Implemented Interfaces:
HasWorkflowSerializationContext
,SerializationContext
public class ActivitySerializationContext extends java.lang.Object implements HasWorkflowSerializationContext
-
-
Constructor Summary
Constructors Constructor Description ActivitySerializationContext(ActivityInfo info)
ActivitySerializationContext(java.lang.String namespace, java.lang.String workflowId, java.lang.String workflowType, java.lang.String activityType, java.lang.String activityTaskQueue, boolean local)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getActivityTaskQueue()
java.lang.String
getActivityType()
java.lang.String
getNamespace()
java.lang.String
getWorkflowId()
java.lang.String
getWorkflowType()
boolean
isLocal()
-
-
-
Constructor Detail
-
ActivitySerializationContext
public ActivitySerializationContext(@Nonnull java.lang.String namespace, @Nonnull java.lang.String workflowId, @Nonnull java.lang.String workflowType, @Nonnull java.lang.String activityType, @Nonnull java.lang.String activityTaskQueue, boolean local)
-
ActivitySerializationContext
public ActivitySerializationContext(ActivityInfo info)
-
-
Method Detail
-
getNamespace
@Nonnull public java.lang.String getNamespace()
- Specified by:
getNamespace
in interfaceHasWorkflowSerializationContext
- Returns:
- namespace the workflow execution belongs to
-
getWorkflowId
@Nonnull public java.lang.String getWorkflowId()
- Specified by:
getWorkflowId
in interfaceHasWorkflowSerializationContext
- Returns:
- workflowId of the Workflow Execution the Serialization Target belongs to. If the Target
is a Workflow itself, this method will return the Target's Workflow ID (not the ID of the
parent workflow).
WARNING: When used in the context of a schedule workflow the workflowId may differ on serialization and deserialization.
-
getWorkflowType
@Nonnull public java.lang.String getWorkflowType()
-
getActivityType
@Nonnull public java.lang.String getActivityType()
-
getActivityTaskQueue
@Nonnull public java.lang.String getActivityTaskQueue()
-
isLocal
public boolean isLocal()
-
-