Annotation Interface Grpc.ClientStreaming

Enclosing interface:
Grpc

@Target(METHOD) @Retention(RUNTIME) @GrpcMethod(CLIENT_STREAMING) @Documented @Inherited public static @interface Grpc.ClientStreaming
An annotation to mark a method as representing a client streaming gRPC method.

Declarative gRPC methods support these signatures:

  • Res method(Stream<Req>)
  • StreamObserver<Req> method(StreamObserver<Res>) on clients
Server endpoint methods return a single response value and do not support the StreamObserver signature. Declarative streaming methods use resource-owning streams with transport backpressure and cancellation. The runtime owns and closes request streams supplied to server endpoints and generated clients.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Obtain the name of the method.
  • Element Details

    • value

      String value
      Obtain the name of the method.

      If not set the name of the actual annotated method is used.

      Returns:
      name of the method
      Default:
      ""