Class GrpcMethod

java.lang.Object
com.codename1.backend.grpc.GrpcMethod

public final class GrpcMethod extends Object

One method a GrpcServer serves: its path, its shape, the codecs of its messages and the code that runs it.

The build generates these from @GrpcService beans, so nothing is looked up by name at run time. They can also be built by hand with the factories.

  • Field Details

    • UNARY

      public static final int UNARY
      One request, one response.
      See Also:
    • SERVER_STREAMING

      public static final int SERVER_STREAMING
      One request, a stream of responses.
      See Also:
    • CLIENT_STREAMING

      public static final int CLIENT_STREAMING
      A stream of requests, one response.
      See Also:
    • BIDI_STREAMING

      public static final int BIDI_STREAMING
      Streams both ways.
      See Also:
  • Method Details