Package com.microsoft.durabletask
Interface TaskActivityContext
-
public interface TaskActivityContextInterface that providesTaskActivityimplementations with activity context, such as an activity's name and its input.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> TgetInput(java.lang.Class<T> targetType)Gets the deserialized activity input.java.lang.StringgetName()Gets the name of the current task activity.
-
-
-
Method Detail
-
getName
java.lang.String getName()
Gets the name of the current task activity.- Returns:
- the name of the current task activity
-
getInput
<T> T getInput(java.lang.Class<T> targetType)
Gets the deserialized activity input.- Type Parameters:
T- the target type to deserialize the input into- Parameters:
targetType- theClassobject associated withT- Returns:
- the deserialized activity input value
-
-