Package io.grpc
Class ServerStreamTracer.ReadOnlyServerCall<ReqT,RespT>
java.lang.Object
io.grpc.ServerCall<ReqT,RespT>
io.grpc.PartialForwardingServerCall<ReqT,RespT>
io.grpc.ForwardingServerCall<ReqT,RespT>
io.grpc.ServerStreamTracer.ReadOnlyServerCall<ReqT,RespT>
- Enclosing class:
ServerStreamTracer
@Deprecated
private static final class ServerStreamTracer.ReadOnlyServerCall<ReqT,RespT>
extends ForwardingServerCall<ReqT,RespT>
Deprecated.
This class exists solely to help transition to the
ServerStreamTracer.ServerCallInfo
based API.-
Nested Class Summary
Nested classes/interfaces inherited from class io.grpc.ForwardingServerCall
ForwardingServerCall.SimpleForwardingServerCall<ReqT,
RespT> Nested classes/interfaces inherited from class io.grpc.ServerCall
ServerCall.Listener<ReqT>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ServerStreamTracer.ServerCallInfo
<ReqT, RespT> Deprecated. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionprivate static <ReqT,
RespT>
ServerStreamTracer.ReadOnlyServerCall<ReqT, RespT> create
(ServerStreamTracer.ServerCallInfo<ReqT, RespT> callInfo) Deprecated.protected ServerCall
<ReqT, RespT> delegate()
Deprecated.Returns the delegatedServerCall
.Deprecated.Returns properties of a single call.Deprecated.Gets the authority this call is addressed to.Deprecated.TheMethodDescriptor
for the call.boolean
Deprecated.Returnstrue
when the call is cancelled and the server is encouraged to abort processing to save resources, since the client will not be processing any further methods.boolean
isReady()
Deprecated.Iftrue
, indicates that the call is capable of sending additional messages without requiring excessive buffering internally.Methods inherited from class io.grpc.ForwardingServerCall
sendMessage
Methods inherited from class io.grpc.PartialForwardingServerCall
close, getSecurityLevel, request, sendHeaders, setCompression, setMessageCompression, setOnReadyThreshold, toString
-
Field Details
-
callInfo
Deprecated.
-
-
Constructor Details
-
ReadOnlyServerCall
Deprecated.
-
-
Method Details
-
create
private static <ReqT,RespT> ServerStreamTracer.ReadOnlyServerCall<ReqT,RespT> create(ServerStreamTracer.ServerCallInfo<ReqT, RespT> callInfo) Deprecated. -
getMethodDescriptor
Deprecated.Description copied from class:ServerCall
TheMethodDescriptor
for the call.- Overrides:
getMethodDescriptor
in classForwardingServerCall<ReqT,
RespT>
-
getAttributes
Deprecated.Description copied from class:ServerCall
Returns properties of a single call.Attributes originate from the transport and can be altered by
ServerTransportFilter
.- Overrides:
getAttributes
in classPartialForwardingServerCall<ReqT,
RespT> - Returns:
- non-
null
Attributes container
-
isReady
public boolean isReady()Deprecated.Description copied from class:ServerCall
Iftrue
, indicates that the call is capable of sending additional messages without requiring excessive buffering internally. This event is just a suggestion and the application is free to ignore it, however doing so may result in excessive buffering within the call.If
false
,ServerCall.Listener.onReady()
will be called afterisReady()
transitions totrue
.This abstract class's implementation always returns
true
. Implementations generally override the method.- Overrides:
isReady
in classPartialForwardingServerCall<ReqT,
RespT>
-
isCancelled
public boolean isCancelled()Deprecated.Description copied from class:ServerCall
Returnstrue
when the call is cancelled and the server is encouraged to abort processing to save resources, since the client will not be processing any further methods. Cancellations can be caused by timeouts, explicit cancel by client, network errors, and similar.This method may safely be called concurrently from multiple threads.
- Overrides:
isCancelled
in classPartialForwardingServerCall<ReqT,
RespT>
-
getAuthority
Deprecated.Description copied from class:ServerCall
Gets the authority this call is addressed to.- Overrides:
getAuthority
in classPartialForwardingServerCall<ReqT,
RespT> - Returns:
- the authority string.
null
if not available.
-
delegate
Deprecated.Description copied from class:ForwardingServerCall
Returns the delegatedServerCall
.- Specified by:
delegate
in classForwardingServerCall<ReqT,
RespT>
-
ServerStreamTracer.serverCallStarted(ServerCall)
is removed.