com.microsoft.durabletask.TaskActivityContext Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of durabletask-client Show documentation
Show all versions of durabletask-client Show documentation
This package contains classes and interfaces for building Durable Task orchestrations in Java.
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.microsoft.durabletask;
/**
* Interface that provides {@link TaskActivity} implementations with activity context, such as an activity's name and
* its input.
*/
public interface TaskActivityContext {
/**
* Gets the name of the current task activity.
* @return the name of the current task activity
*/
String getName();
/**
* Gets the deserialized activity input.
*
* @param targetType the {@link Class} object associated with {@code T}
* @param the target type to deserialize the input into
* @return the deserialized activity input value
*/
T getInput(Class targetType);
}