Uses of Class
io.dapr.durabletask.Task

Packages that use Task
Package
Description
 
  • Uses of Task in io.dapr.durabletask

    Methods in io.dapr.durabletask that return Task
    Modifier and Type
    Method
    Description
    default <V> Task<List<V>>
    TaskOrchestrationContext.allOf(Task<V>... tasks)
    Returns a new Task that is completed when all the given Tasks complete.
    <V> Task<List<V>>
    TaskOrchestrationContext.allOf(List<Task<V>> tasks)
    Returns a new Task that is completed when all tasks in tasks completes.
    default Task<Task<?>>
    TaskOrchestrationContext.anyOf(Task<?>... tasks)
    Returns a new Task that is completed when any of the given Tasks complete.
    TaskOrchestrationContext.anyOf(List<Task<?>> tasks)
    Returns a new Task that is completed when any of the tasks in tasks completes.
    default Task<Void>
    TaskOrchestrationContext.callActivity(String name)
    Asynchronously invokes an activity by name and returns a new Task that completes when the activity completes.
    default <V> Task<V>
    TaskOrchestrationContext.callActivity(String name, Class<V> returnType)
    Asynchronously invokes an activity by name and returns a new Task that completes when the activity completes.
    default Task<Void>
    TaskOrchestrationContext.callActivity(String name, Object input)
    Asynchronously invokes an activity by name and with the specified input value and returns a new Task that completes when the activity completes.
    default Task<Void>
    TaskOrchestrationContext.callActivity(String name, Object input, TaskOptions options)
    Asynchronously invokes an activity by name and with the specified input value and returns a new Task that completes when the activity completes.
    <V> Task<V>
    TaskOrchestrationContext.callActivity(String name, Object input, TaskOptions options, Class<V> returnType)
    Asynchronously invokes an activity by name and with the specified input value and returns a new Task that completes when the activity completes.
    default <V> Task<V>
    TaskOrchestrationContext.callActivity(String name, Object input, Class<V> returnType)
    Asynchronously invokes an activity by name and with the specified input value and returns a new Task that completes when the activity completes.If the activity completes successfully, the returned Task's value will be the activity's output.
    default Task<Void>
    TaskOrchestrationContext.callSubOrchestrator(String name)
    Asynchronously invokes another orchestrator as a sub-orchestration and returns a Task that completes when the sub-orchestration completes.
    default Task<Void>
    TaskOrchestrationContext.callSubOrchestrator(String name, Object input)
    Asynchronously invokes another orchestrator as a sub-orchestration and returns a Task that completes when the sub-orchestration completes.
    default <V> Task<V>
    TaskOrchestrationContext.callSubOrchestrator(String name, Object input, Class<V> returnType)
    Asynchronously invokes another orchestrator as a sub-orchestration and returns a Task that completes when the sub-orchestration completes.
    default Task<Void>
    TaskOrchestrationContext.callSubOrchestrator(String name, Object input, String instanceID, TaskOptions options)
    Asynchronously invokes another orchestrator as a sub-orchestration and returns a Task that completes when the sub-orchestration completes.
    <V> Task<V>
    TaskOrchestrationContext.callSubOrchestrator(String name, Object input, String instanceID, TaskOptions options, Class<V> returnType)
    Asynchronously invokes another orchestrator as a sub-orchestration and returns a Task that completes when the sub-orchestration completes.
    default <V> Task<V>
    TaskOrchestrationContext.callSubOrchestrator(String name, Object input, String instanceID, Class<V> returnType)
    Asynchronously invokes another orchestrator as a sub-orchestration and returns a Task that completes when the sub-orchestration completes.
    TaskOrchestrationContext.createTimer(String name, Duration delay)
    Creates a durable timer that expires after the specified delay.
    TaskOrchestrationContext.createTimer(String name, ZonedDateTime zonedDateTime)
    Creates a durable timer that expires after the specified timestamp with specific zone.
    TaskOrchestrationContext.createTimer(Duration delay)
    Creates a durable timer that expires after the specified delay.
    TaskOrchestrationContext.createTimer(ZonedDateTime zonedDateTime)
    Creates a durable timer that expires after the specified timestamp with specific zone.
    abstract Task<Void>
    Task.thenAccept(Consumer<V> fn)
    Returns a new Task that, when this Task completes normally, is executed with this Task's result as the argument to the supplied action.
    abstract <U> Task<U>
    Task.thenApply(Function<V,U> fn)
    Returns a new Task that, when this Task completes normally, is executed with this Task's result as the argument to the supplied function.
    default Task<Void>
    TaskOrchestrationContext.waitForExternalEvent(String name)
    Waits for an event to be raised named name and returns a Task that completes when the event is received.
    default <V> Task<V>
    TaskOrchestrationContext.waitForExternalEvent(String name, Class<V> dataType)
    Waits for an event to be raised named name and returns a Task that completes when the event is received.
    default Task<Void>
    TaskOrchestrationContext.waitForExternalEvent(String name, Duration timeout)
    Waits for an event to be raised named name and returns a Task that completes when the event is received or is canceled when timeout expires.
    <V> Task<V>
    TaskOrchestrationContext.waitForExternalEvent(String name, Duration timeout, Class<V> dataType)
    Waits for an event to be raised named name and returns a Task that completes when the event is received or is canceled when timeout expires.
    Methods in io.dapr.durabletask that return types with arguments of type Task
    Modifier and Type
    Method
    Description
    default Task<Task<?>>
    TaskOrchestrationContext.anyOf(Task<?>... tasks)
    Returns a new Task that is completed when any of the given Tasks complete.
    TaskOrchestrationContext.anyOf(List<Task<?>> tasks)
    Returns a new Task that is completed when any of the tasks in tasks completes.
    Methods in io.dapr.durabletask with parameters of type Task
    Modifier and Type
    Method
    Description
    default <V> Task<List<V>>
    TaskOrchestrationContext.allOf(Task<V>... tasks)
    Returns a new Task that is completed when all the given Tasks complete.
    default Task<Task<?>>
    TaskOrchestrationContext.anyOf(Task<?>... tasks)
    Returns a new Task that is completed when any of the given Tasks complete.
    Method parameters in io.dapr.durabletask with type arguments of type Task
    Modifier and Type
    Method
    Description
    <V> Task<List<V>>
    TaskOrchestrationContext.allOf(List<Task<V>> tasks)
    Returns a new Task that is completed when all tasks in tasks completes.
    TaskOrchestrationContext.anyOf(List<Task<?>> tasks)
    Returns a new Task that is completed when any of the tasks in tasks completes.