Package com.google.api.gax.tracing
Class TracedClientStreamingCallable<RequestT,ResponseT>
java.lang.Object
com.google.api.gax.rpc.ClientStreamingCallable<RequestT,ResponseT>
com.google.api.gax.tracing.TracedClientStreamingCallable<RequestT,ResponseT>
@BetaApi("The surface for tracing is not stable and might change in the future")
@InternalApi
public class TracedClientStreamingCallable<RequestT,ResponseT>
extends ClientStreamingCallable<RequestT,ResponseT>
A wrapper callable that will wrap a callable chain in a trace.
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 Summary
ConstructorsConstructorDescriptionTracedClientStreamingCallable(ClientStreamingCallable<RequestT, ResponseT> innerCallable, ApiTracerFactory tracerFactory, SpanName spanName) -
Method Summary
Modifier and TypeMethodDescriptionclientStreamingCall(ApiStreamObserver<ResponseT> responseObserver, ApiCallContext context) Conduct a client streaming call with the givenApiCallContextMethods inherited from class com.google.api.gax.rpc.ClientStreamingCallable
clientStreamingCall, withDefaultCallContext
-
Constructor Details
-
TracedClientStreamingCallable
public TracedClientStreamingCallable(@Nonnull ClientStreamingCallable<RequestT, ResponseT> innerCallable, @Nonnull ApiTracerFactory tracerFactory, @Nonnull SpanName spanName)
-
-
Method Details
-
clientStreamingCall
public ApiStreamObserver<RequestT> clientStreamingCall(ApiStreamObserver<ResponseT> responseObserver, ApiCallContext context) Description copied from class:ClientStreamingCallableConduct a client streaming call with the givenApiCallContext- Specified by:
clientStreamingCallin classClientStreamingCallable<RequestT,ResponseT> - Parameters:
responseObserver-ApiStreamObserverto receive the non-streaming response.context-ApiCallContextto provide context information for the RPC call.- Returns:
ApiStreamObserverwhich is used for making streaming requests.
-