Interface WorkflowMethodFactory<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.
Function interface for
WorkflowRunOperation.fromWorkflowMethod(WorkflowMethodFactory)
representing the workflow method to invoke for every operation call.-
Method Summary
Modifier and TypeMethodDescriptionapply(io.nexusrpc.handler.OperationContext context, io.nexusrpc.handler.OperationStartDetails details, T input) Invoked every operation start call and expected to return a workflow method reference to a proxy created throughWorkflowClient.newWorkflowStub(Class, WorkflowOptions)using the providedWorkflowClientformNexus.getOperationContext().
-
Method Details
-
apply
@Nullable Functions.Func1<T,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 method reference to a proxy created throughWorkflowClient.newWorkflowStub(Class, WorkflowOptions)using the providedWorkflowClientformNexus.getOperationContext().
-