Package io.grpc.channelz.v1
Class ChannelzGrpc.MethodHandlers<Req,Resp>
- java.lang.Object
-
- io.grpc.channelz.v1.ChannelzGrpc.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:
- ChannelzGrpc
private static final class ChannelzGrpc.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 int
methodId
private ChannelzGrpc.AsyncService
serviceImpl
-
Constructor Summary
Constructors Constructor Description MethodHandlers(ChannelzGrpc.AsyncService serviceImpl, int methodId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StreamObserver<Req>
invoke(StreamObserver<Resp> responseObserver)
The providedresponseObserver
will extendServerCallStreamObserver
.void
invoke(Req request, StreamObserver<Resp> responseObserver)
The providedresponseObserver
will extendServerCallStreamObserver
.
-
-
-
Field Detail
-
serviceImpl
private final ChannelzGrpc.AsyncService serviceImpl
-
methodId
private final int methodId
-
-
Constructor Detail
-
MethodHandlers
MethodHandlers(ChannelzGrpc.AsyncService serviceImpl, int methodId)
-
-
Method Detail
-
invoke
public void invoke(Req request, StreamObserver<Resp> responseObserver)
Description copied from interface:ServerCalls.UnaryRequestMethod
The providedresponseObserver
will extendServerCallStreamObserver
.- Specified by:
invoke
in interfaceServerCalls.ServerStreamingMethod<Req,Resp>
- Specified by:
invoke
in interfaceServerCalls.UnaryMethod<Req,Resp>
- Specified by:
invoke
in interfaceServerCalls.UnaryRequestMethod<Req,Resp>
-
invoke
public StreamObserver<Req> invoke(StreamObserver<Resp> responseObserver)
Description copied from interface:ServerCalls.StreamingRequestMethod
The providedresponseObserver
will extendServerCallStreamObserver
.- Specified by:
invoke
in interfaceServerCalls.BidiStreamingMethod<Req,Resp>
- Specified by:
invoke
in interfaceServerCalls.ClientStreamingMethod<Req,Resp>
- Specified by:
invoke
in interfaceServerCalls.StreamingRequestMethod<Req,Resp>
-
-