All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.microsoft.durabletask.TaskActivityContext Maven / Gradle / Ivy

Go to download

This package contains classes and interfaces for building Durable Task orchestrations in Java.

There is a newer version: 1.5.0
Show newest version
// 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);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy