Annotation Interface Grpc.ServerStreaming

Enclosing interface:
Grpc

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

Declarative gRPC methods support these signatures:

  • Stream<Res> method(Req)
  • void method(Req, StreamObserver<Res>)
A response stream returned by a server endpoint transfers ownership to the runtime. A generated-client caller owns a returned response stream and must close it when it stops before normal exhaustion.
  • 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:
      ""