Class CodegenUtils


  • public class CodegenUtils
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <Req,​Res>
      io.grpc.MethodDescriptor<Req,​Res>
      generateMethodDescriptor​(io.grpc.MethodDescriptor<Req,​Res> original, java.lang.String serviceFqn, java.lang.String methodName)  
      static <T> Value tToValue​(dev.restate.sdk.common.Serde<T> serde, T value)  
      static <T> T valueToT​(dev.restate.sdk.common.Serde<T> serde, Value value)  
      • Methods inherited from class java.lang.Object

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

      • valueToT

        public static <T> T valueToT​(dev.restate.sdk.common.Serde<T> serde,
                                     Value value)
      • tToValue

        public static <T> Value tToValue​(dev.restate.sdk.common.Serde<T> serde,
                                         T value)
      • generateMethodDescriptor

        public static <Req,​Res> io.grpc.MethodDescriptor<Req,​Res> generateMethodDescriptor​(io.grpc.MethodDescriptor<Req,​Res> original,
                                                                                                       java.lang.String serviceFqn,
                                                                                                       java.lang.String methodName)