Class WorkflowCodegenUtil.ExternalClient

  • Enclosing class:
    WorkflowCodegenUtil

    public static class WorkflowCodegenUtil.ExternalClient
    extends java.lang.Object
    • Method Detail

      • 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)