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
ConstructorsModifierConstructorDescriptionprivateDeprecated. -
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.TheMethodDescriptorfor the call.booleanDeprecated.Returnstruewhen 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.booleanisReady()Deprecated.Iftrue, indicates that the call is capable of sending additional messages without requiring excessive buffering internally.Methods inherited from class io.grpc.ForwardingServerCall
sendMessageMethods 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:ServerCallTheMethodDescriptorfor the call.- Overrides:
getMethodDescriptorin classForwardingServerCall<ReqT,RespT>
-
getAttributes
Deprecated.Description copied from class:ServerCallReturns properties of a single call.Attributes originate from the transport and can be altered by
ServerTransportFilter.- Overrides:
getAttributesin classPartialForwardingServerCall<ReqT,RespT> - Returns:
- non-
nullAttributes container
-
isReady
public boolean isReady()Deprecated.Description copied from class:ServerCallIftrue, 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:
isReadyin classPartialForwardingServerCall<ReqT,RespT>
-
isCancelled
public boolean isCancelled()Deprecated.Description copied from class:ServerCallReturnstruewhen 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:
isCancelledin classPartialForwardingServerCall<ReqT,RespT>
-
getAuthority
Deprecated.Description copied from class:ServerCallGets the authority this call is addressed to.- Overrides:
getAuthorityin classPartialForwardingServerCall<ReqT,RespT> - Returns:
- the authority string.
nullif not available.
-
delegate
Deprecated.Description copied from class:ForwardingServerCallReturns the delegatedServerCall.- Specified by:
delegatein classForwardingServerCall<ReqT,RespT>
-
ServerStreamTracer.serverCallStarted(ServerCall)is removed.