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>
A
ServerCall
which forwards all of its methods to another ServerCall
.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
A simplified version ofForwardingServerCall
where subclasses can pass in aServerCall
as the delegate.Nested classes/interfaces inherited from class io.grpc.ServerCall
ServerCall.Listener<ReqT>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract ServerCall
<ReqT, RespT> delegate()
Returns the delegatedServerCall
.TheMethodDescriptor
for the call.void
sendMessage
(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
-
Constructor Details
-
ForwardingServerCall
public ForwardingServerCall()
-
-
Method Details
-
delegate
Returns the delegatedServerCall
.- Specified by:
delegate
in classPartialForwardingServerCall<ReqT,
RespT>
-
sendMessage
Description copied from class:ServerCall
Send a response message. Messages are the primary form of communication associated with RPCs. Multiple response messages may exist for streaming calls.- Specified by:
sendMessage
in classServerCall<ReqT,
RespT> - Parameters:
message
- response message.
-
getMethodDescriptor
Description copied from class:ServerCall
TheMethodDescriptor
for the call.- Specified by:
getMethodDescriptor
in classServerCall<ReqT,
RespT>
-