Package io.temporal.nexus
Interface WorkflowHandleFactory<T,R>
-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface WorkflowHandleFactory<T,R>Function interface forWorkflowRunOperation.fromWorkflowHandle(WorkflowHandleFactory)representing the workflow to associate with each operation call.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description WorkflowHandle<R>apply(io.nexusrpc.handler.OperationContext context, io.nexusrpc.handler.OperationStartDetails details, T input)Invoked every operation start call and expected to return a workflow handle to a workflow stub created with theWorkflowClientprovided byNexusOperationContext.getWorkflowClient().
-
-
-
Method Detail
-
apply
@Nullable WorkflowHandle<R> apply(io.nexusrpc.handler.OperationContext context, io.nexusrpc.handler.OperationStartDetails details, T input)
Invoked every operation start call and expected to return a workflow handle to a workflow stub created with theWorkflowClientprovided byNexusOperationContext.getWorkflowClient().
-
-