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.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
Fields Modifier and Type Field Description private ServerStreamTracer.ServerCallInfo<ReqT,RespT>
callInfo
Deprecated.
-
Constructor Summary
Constructors Modifier Constructor Description private
ReadOnlyServerCall(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
.Attributes
getAttributes()
Deprecated.Returns properties of a single call.java.lang.String
getAuthority()
Deprecated.Gets the authority this call is addressed to.MethodDescriptor<ReqT,RespT>
getMethodDescriptor()
Deprecated.TheMethodDescriptor
for the call.boolean
isCancelled()
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 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:ServerCall
TheMethodDescriptor
for the call.- Overrides:
getMethodDescriptor
in classForwardingServerCall<ReqT,RespT>
-
getAttributes
public Attributes 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
public java.lang.String 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
protected ServerCall<ReqT,RespT> delegate()
Deprecated.Description copied from class:ForwardingServerCall
Returns the delegatedServerCall
.- Specified by:
delegate
in classForwardingServerCall<ReqT,RespT>
-
-