Package io.grpc
Class ForwardingServerCall<ReqT,RespT>
- java.lang.Object
-
- io.grpc.ServerCall<ReqT,RespT>
-
- io.grpc.PartialForwardingServerCall<ReqT,RespT>
-
- io.grpc.ForwardingServerCall<ReqT,RespT>
-
- Direct Known Subclasses:
ForwardingServerCall.SimpleForwardingServerCall,ServerStreamTracer.ReadOnlyServerCall
public abstract class ForwardingServerCall<ReqT,RespT> extends PartialForwardingServerCall<ReqT,RespT>
AServerCallwhich forwards all of its methods to anotherServerCall.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classForwardingServerCall.SimpleForwardingServerCall<ReqT,RespT>A simplified version ofForwardingServerCallwhere subclasses can pass in aServerCallas the delegate.-
Nested classes/interfaces inherited from class io.grpc.ServerCall
ServerCall.Listener<ReqT>
-
-
Constructor Summary
Constructors Constructor Description ForwardingServerCall()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract ServerCall<ReqT,RespT>delegate()Returns the delegatedServerCall.MethodDescriptor<ReqT,RespT>getMethodDescriptor()TheMethodDescriptorfor the call.voidsendMessage(RespT message)Send a response message.-
Methods inherited from class io.grpc.PartialForwardingServerCall
close, getAttributes, getAuthority, getSecurityLevel, isCancelled, isReady, request, sendHeaders, setCompression, setMessageCompression, setOnReadyThreshold, toString
-
-
-
-
Method Detail
-
delegate
protected abstract ServerCall<ReqT,RespT> delegate()
Returns the delegatedServerCall.- Specified by:
delegatein classPartialForwardingServerCall<ReqT,RespT>
-
sendMessage
public void sendMessage(RespT message)
Description copied from class:ServerCallSend a response message. Messages are the primary form of communication associated with RPCs. Multiple response messages may exist for streaming calls.- Specified by:
sendMessagein classServerCall<ReqT,RespT>- Parameters:
message- response message.
-
getMethodDescriptor
public MethodDescriptor<ReqT,RespT> getMethodDescriptor()
Description copied from class:ServerCallTheMethodDescriptorfor the call.- Specified by:
getMethodDescriptorin classServerCall<ReqT,RespT>
-
-