Package dev.restate.sdk.workflow.impl
Class WorkflowCodegenUtil.ExternalClient
- java.lang.Object
-
- dev.restate.sdk.workflow.impl.WorkflowCodegenUtil.ExternalClient
-
- Enclosing class:
- WorkflowCodegenUtil
public static class WorkflowCodegenUtil.ExternalClient extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> java.util.Optional<T>getOutput(io.grpc.Channel channel, io.grpc.MethodDescriptor<OutputRequest,GetOutputResponse> getOutputMethodDesc, java.lang.String workflowKey, dev.restate.sdk.common.Serde<T> serde)static <T> java.util.Optional<T>getState(io.grpc.Channel channel, io.grpc.MethodDescriptor<StateRequest,GetStateResponse> getStateMethodDesc, java.lang.String workflowKey, dev.restate.sdk.common.StateKey<T> key)static ValueinvokeShared(io.grpc.Channel channel, io.grpc.MethodDescriptor<InvokeRequest,Value> invokeMethodDesc, java.lang.String workflowKey, Value payload)static voidinvokeSharedOneWay(io.grpc.Channel channel, io.grpc.MethodDescriptor<InvokeRequest,Value> invokeMethodDesc, java.lang.String workflowKey, Value payload)static booleanisCompleted(io.grpc.Channel channel, io.grpc.MethodDescriptor<OutputRequest,GetOutputResponse> getOutputMethodDesc, java.lang.String workflowKey)static WorkflowExecutionStatesubmit(io.grpc.Channel channel, io.grpc.MethodDescriptor<InvokeRequest,SubmitResponse> submitMethodDesc, java.lang.String workflowKey, Value payload)
-
-
-
Method Detail
-
submit
public static WorkflowExecutionState submit(io.grpc.Channel channel, io.grpc.MethodDescriptor<InvokeRequest,SubmitResponse> submitMethodDesc, java.lang.String workflowKey, @Nullable Value payload)
-
getOutput
public static <T> java.util.Optional<T> getOutput(io.grpc.Channel channel, io.grpc.MethodDescriptor<OutputRequest,GetOutputResponse> getOutputMethodDesc, java.lang.String workflowKey, dev.restate.sdk.common.Serde<T> serde)
-
isCompleted
public static boolean isCompleted(io.grpc.Channel channel, io.grpc.MethodDescriptor<OutputRequest,GetOutputResponse> getOutputMethodDesc, java.lang.String workflowKey)
-
invokeShared
public static Value invokeShared(io.grpc.Channel channel, io.grpc.MethodDescriptor<InvokeRequest,Value> invokeMethodDesc, java.lang.String workflowKey, @Nullable Value payload)
-
invokeSharedOneWay
public static void invokeSharedOneWay(io.grpc.Channel channel, io.grpc.MethodDescriptor<InvokeRequest,Value> invokeMethodDesc, java.lang.String workflowKey, @Nullable Value payload)
-
getState
public static <T> java.util.Optional<T> getState(io.grpc.Channel channel, io.grpc.MethodDescriptor<StateRequest,GetStateResponse> getStateMethodDesc, java.lang.String workflowKey, dev.restate.sdk.common.StateKey<T> key)
-
-