Class WorkflowCodegenUtil.RestateClient

  • Enclosing class:
    WorkflowCodegenUtil

    public static class WorkflowCodegenUtil.RestateClient
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <T> dev.restate.sdk.Awaitable<java.util.Optional<T>> getOutput​(dev.restate.sdk.Context ctx, io.grpc.MethodDescriptor<OutputRequest,​GetOutputResponse> getOutputMethodDesc, java.lang.String workflowKey, dev.restate.sdk.common.Serde<T> serde)  
      static <T> dev.restate.sdk.Awaitable<java.util.Optional<T>> getState​(dev.restate.sdk.Context ctx, io.grpc.MethodDescriptor<StateRequest,​GetStateResponse> getStateMethodDesc, java.lang.String workflowKey, dev.restate.sdk.common.StateKey<T> key)  
      static dev.restate.sdk.Awaitable<Value> invokeShared​(dev.restate.sdk.Context ctx, io.grpc.MethodDescriptor<InvokeRequest,​Value> invokeMethodDesc, java.lang.String workflowKey, Value payload)  
      static void invokeSharedDelayed​(dev.restate.sdk.Context ctx, io.grpc.MethodDescriptor<InvokeRequest,​Value> invokeMethodDesc, java.lang.String workflowKey, Value payload, java.time.Duration delay)  
      static void invokeSharedOneWay​(dev.restate.sdk.Context ctx, io.grpc.MethodDescriptor<InvokeRequest,​Value> invokeMethodDesc, java.lang.String workflowKey, Value payload)  
      static dev.restate.sdk.Awaitable<java.lang.Boolean> isCompleted​(dev.restate.sdk.Context ctx, io.grpc.MethodDescriptor<OutputRequest,​GetOutputResponse> getOutputMethodDesc, java.lang.String workflowKey)  
      static dev.restate.sdk.Awaitable<WorkflowExecutionState> submit​(dev.restate.sdk.Context ctx, io.grpc.MethodDescriptor<InvokeRequest,​SubmitResponse> submitMethodDesc, java.lang.String workflowKey, Value payload)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getOutput

        public static <T> dev.restate.sdk.Awaitable<java.util.Optional<T>> getOutput​(dev.restate.sdk.Context ctx,
                                                                                     io.grpc.MethodDescriptor<OutputRequest,​GetOutputResponse> getOutputMethodDesc,
                                                                                     java.lang.String workflowKey,
                                                                                     dev.restate.sdk.common.Serde<T> serde)
      • isCompleted

        public static dev.restate.sdk.Awaitable<java.lang.Boolean> isCompleted​(dev.restate.sdk.Context ctx,
                                                                               io.grpc.MethodDescriptor<OutputRequest,​GetOutputResponse> getOutputMethodDesc,
                                                                               java.lang.String workflowKey)
      • invokeShared

        public static dev.restate.sdk.Awaitable<Value> invokeShared​(dev.restate.sdk.Context ctx,
                                                                    io.grpc.MethodDescriptor<InvokeRequest,​Value> invokeMethodDesc,
                                                                    java.lang.String workflowKey,
                                                                    @Nullable
                                                                    Value payload)
      • invokeSharedOneWay

        public static void invokeSharedOneWay​(dev.restate.sdk.Context ctx,
                                              io.grpc.MethodDescriptor<InvokeRequest,​Value> invokeMethodDesc,
                                              java.lang.String workflowKey,
                                              @Nullable
                                              Value payload)
      • invokeSharedDelayed

        public static void invokeSharedDelayed​(dev.restate.sdk.Context ctx,
                                               io.grpc.MethodDescriptor<InvokeRequest,​Value> invokeMethodDesc,
                                               java.lang.String workflowKey,
                                               @Nullable
                                               Value payload,
                                               java.time.Duration delay)
      • getState

        public static <T> dev.restate.sdk.Awaitable<java.util.Optional<T>> getState​(dev.restate.sdk.Context ctx,
                                                                                    io.grpc.MethodDescriptor<StateRequest,​GetStateResponse> getStateMethodDesc,
                                                                                    java.lang.String workflowKey,
                                                                                    dev.restate.sdk.common.StateKey<T> key)