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>
A
ServerCall which forwards all of its methods to another ServerCall.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA simplified version ofForwardingServerCallwhere subclasses can pass in aServerCallas the delegate.Nested classes/interfaces inherited from class ServerCall
ServerCall.Listener<ReqT> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract ServerCall<ReqT, RespT> delegate()Returns the delegatedServerCall.TheMethodDescriptorfor the call.voidsendMessage(RespT message) Send a response message.Methods inherited from class PartialForwardingServerCall
close, getAttributes, getAuthority, getSecurityLevel, isCancelled, isReady, request, sendHeaders, setCompression, setMessageCompression, setOnReadyThreshold, toString
-
Constructor Details
-
ForwardingServerCall
public ForwardingServerCall()
-
-
Method Details
-
delegate
Returns the delegatedServerCall.- Specified by:
delegatein classPartialForwardingServerCall<ReqT,RespT>
-
sendMessage
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
Description copied from class:ServerCallTheMethodDescriptorfor the call.- Specified by:
getMethodDescriptorin classServerCall<ReqT,RespT>
-