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.Will be deleted whenServerStreamTracer.serverCallStarted(ServerCall)is removed.This class exists solely to help transition to theServerStreamTracer.ServerCallInfobased 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
Fields Modifier and Type Field Description private ServerStreamTracer.ServerCallInfo<ReqT,RespT>callInfoDeprecated.
-
Constructor Summary
Constructors Modifier Constructor Description privateReadOnlyServerCall(ServerStreamTracer.ServerCallInfo<ReqT,RespT> callInfo)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description private static <ReqT,RespT>
ServerStreamTracer.ReadOnlyServerCall<ReqT,RespT>create(ServerStreamTracer.ServerCallInfo<ReqT,RespT> callInfo)Deprecated.protected ServerCall<ReqT,RespT>delegate()Deprecated.Returns the delegatedServerCall.AttributesgetAttributes()Deprecated.Returns properties of a single call.java.lang.StringgetAuthority()Deprecated.Gets the authority this call is addressed to.MethodDescriptor<ReqT,RespT>getMethodDescriptor()Deprecated.TheMethodDescriptorfor the call.booleanisCancelled()Deprecated.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
sendMessage
-
Methods inherited from class io.grpc.PartialForwardingServerCall
close, getSecurityLevel, request, sendHeaders, setCompression, setMessageCompression, setOnReadyThreshold, toString
-
-
-
-
Field Detail
-
callInfo
private final ServerStreamTracer.ServerCallInfo<ReqT,RespT> callInfo
Deprecated.
-
-
Constructor Detail
-
ReadOnlyServerCall
private ReadOnlyServerCall(ServerStreamTracer.ServerCallInfo<ReqT,RespT> callInfo)
Deprecated.
-
-
Method Detail
-
create
private static <ReqT,RespT> ServerStreamTracer.ReadOnlyServerCall<ReqT,RespT> create(ServerStreamTracer.ServerCallInfo<ReqT,RespT> callInfo)
Deprecated.
-
getMethodDescriptor
public MethodDescriptor<ReqT,RespT> getMethodDescriptor()
Deprecated.Description copied from class:ServerCallTheMethodDescriptorfor the call.- Overrides:
getMethodDescriptorin classForwardingServerCall<ReqT,RespT>
-
getAttributes
public Attributes 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
public java.lang.String 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
protected ServerCall<ReqT,RespT> delegate()
Deprecated.Description copied from class:ForwardingServerCallReturns the delegatedServerCall.- Specified by:
delegatein classForwardingServerCall<ReqT,RespT>
-
-