Share via


DurableClientContext Class

  • java.lang.Object
    • com.microsoft.durabletask.azurefunctions.DurableClientContext

public class DurableClientContext

The binding value type for the @DurableClientInput parameter.

Constructor Summary

Constructor Description
DurableClientContext()

Method Summary

Modifier and Type Method and Description
HttpResponseMessage createCheckStatusResponse(HttpRequestMessage<?> request, String instanceId)
DurableTaskClient getClient()

Gets the durable task client associated with the current function invocation.

java.lang.String getTaskHubName()

Gets the name of the client binding's task hub.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

DurableClientContext

public DurableClientContext()

Method Details

createCheckStatusResponse

public HttpResponseMessage createCheckStatusResponse(HttpRequestMessage<?> request, String instanceId)

Parameters:

request
instanceId

getClient

public DurableTaskClient getClient()

Gets the durable task client associated with the current function invocation.

Returns:

the Durable Task client object associated with the current function invocation.

getTaskHubName

public String getTaskHubName()

Gets the name of the client binding's task hub.

Returns:

the name of the client binding's task hub.

Applies to