Package io.grpc.reflection.v1alpha
Class ServerReflectionGrpc.MethodHandlers<Req,Resp>
- java.lang.Object
-
- io.grpc.reflection.v1alpha.ServerReflectionGrpc.MethodHandlers<Req,Resp>
-
- All Implemented Interfaces:
ServerCalls.BidiStreamingMethod<Req,Resp>,ServerCalls.ClientStreamingMethod<Req,Resp>,ServerCalls.ServerStreamingMethod<Req,Resp>,ServerCalls.StreamingRequestMethod<Req,Resp>,ServerCalls.UnaryMethod<Req,Resp>,ServerCalls.UnaryRequestMethod<Req,Resp>
- Enclosing class:
- ServerReflectionGrpc
private static final class ServerReflectionGrpc.MethodHandlers<Req,Resp> extends java.lang.Object implements ServerCalls.UnaryMethod<Req,Resp>, ServerCalls.ServerStreamingMethod<Req,Resp>, ServerCalls.ClientStreamingMethod<Req,Resp>, ServerCalls.BidiStreamingMethod<Req,Resp>
-
-
Field Summary
Fields Modifier and Type Field Description private intmethodIdprivate ServerReflectionGrpc.AsyncServiceserviceImpl
-
Constructor Summary
Constructors Constructor Description MethodHandlers(ServerReflectionGrpc.AsyncService serviceImpl, int methodId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StreamObserver<Req>invoke(StreamObserver<Resp> responseObserver)The providedresponseObserverwill extendServerCallStreamObserver.voidinvoke(Req request, StreamObserver<Resp> responseObserver)The providedresponseObserverwill extendServerCallStreamObserver.
-
-
-
Field Detail
-
serviceImpl
private final ServerReflectionGrpc.AsyncService serviceImpl
-
methodId
private final int methodId
-
-
Constructor Detail
-
MethodHandlers
MethodHandlers(ServerReflectionGrpc.AsyncService serviceImpl, int methodId)
-
-
Method Detail
-
invoke
public void invoke(Req request, StreamObserver<Resp> responseObserver)
Description copied from interface:ServerCalls.UnaryRequestMethodThe providedresponseObserverwill extendServerCallStreamObserver.- Specified by:
invokein interfaceServerCalls.ServerStreamingMethod<Req,Resp>- Specified by:
invokein interfaceServerCalls.UnaryMethod<Req,Resp>- Specified by:
invokein interfaceServerCalls.UnaryRequestMethod<Req,Resp>
-
invoke
public StreamObserver<Req> invoke(StreamObserver<Resp> responseObserver)
Description copied from interface:ServerCalls.StreamingRequestMethodThe providedresponseObserverwill extendServerCallStreamObserver.- Specified by:
invokein interfaceServerCalls.BidiStreamingMethod<Req,Resp>- Specified by:
invokein interfaceServerCalls.ClientStreamingMethod<Req,Resp>- Specified by:
invokein interfaceServerCalls.StreamingRequestMethod<Req,Resp>
-
-