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
ApiStreamObservercan only be used from a single thread.For internal use only.
-
-
Constructor Summary
Constructors Constructor Description TracedClientStreamingCallable(ClientStreamingCallable<RequestT,ResponseT> innerCallable, ApiTracerFactory tracerFactory, SpanName spanName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ApiStreamObserver<RequestT>clientStreamingCall(ApiStreamObserver<ResponseT> responseObserver, ApiCallContext context)Conduct a client streaming call with the givenApiCallContext-
Methods inherited from class com.google.api.gax.rpc.ClientStreamingCallable
clientStreamingCall, withDefaultCallContext
-
-
-
-
Constructor Detail
-
TracedClientStreamingCallable
public TracedClientStreamingCallable(@Nonnull ClientStreamingCallable<RequestT,ResponseT> innerCallable, @Nonnull ApiTracerFactory tracerFactory, @Nonnull SpanName spanName)
-
-
Method Detail
-
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.
-
-