@BetaApi(value="The surface for tracing is not stable and might change in the future") @InternalApi public class TracedClientStreamingCallable<RequestT,ResponseT> extends ClientStreamingCallable<RequestT,ResponseT>
This can be safely called from multiple threads. However the request ApiStreamObserver
can only be used from a single thread.
For internal use only.
| Constructor and Description |
|---|
TracedClientStreamingCallable(ClientStreamingCallable<RequestT,ResponseT> innerCallable,
ApiTracerFactory tracerFactory,
SpanName spanName) |
| Modifier and Type | Method and Description |
|---|---|
ApiStreamObserver<RequestT> |
clientStreamingCall(ApiStreamObserver<ResponseT> responseObserver,
ApiCallContext context)
Conduct a client streaming call with the given
ApiCallContext |
clientStreamingCall, withDefaultCallContextpublic TracedClientStreamingCallable(@Nonnull ClientStreamingCallable<RequestT,ResponseT> innerCallable, @Nonnull ApiTracerFactory tracerFactory, @Nonnull SpanName spanName)
public ApiStreamObserver<RequestT> clientStreamingCall(ApiStreamObserver<ResponseT> responseObserver, ApiCallContext context)
ClientStreamingCallableApiCallContextclientStreamingCall in class ClientStreamingCallable<RequestT,ResponseT>responseObserver - ApiStreamObserver to receive the non-streaming response.context - ApiCallContext to provide context information for the RPC call.ApiStreamObserver which is used for making streaming requests.