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
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
-
Element Details
-
value
String valueObtain the name of the method.If not set the name of the actual annotated method is used.
- Returns:
- name of the method
- Default:
""
-