Package com.google.api.gax.tracing
Class TracedServerStreamingCallable<RequestT,ResponseT>
- java.lang.Object
-
- com.google.api.gax.rpc.ServerStreamingCallable<RequestT,ResponseT>
-
- com.google.api.gax.tracing.TracedServerStreamingCallable<RequestT,ResponseT>
-
@BetaApi("The surface for tracing is not stable and might change in the future") @InternalApi("For internal use by google-cloud-java clients only") public final class TracedServerStreamingCallable<RequestT,ResponseT> extends ServerStreamingCallable<RequestT,ResponseT>
A wrapper callable that will wrap a callable chain in a trace.For internal use only.
-
-
Constructor Summary
Constructors Constructor Description TracedServerStreamingCallable(ServerStreamingCallable<RequestT,ResponseT> innerCallable, ApiTracerFactory tracerFactory, SpanName spanName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcall(RequestT request, ResponseObserver<ResponseT> responseObserver, ApiCallContext context)Conduct a server streaming call with the givenApiCallContext.-
Methods inherited from class com.google.api.gax.rpc.ServerStreamingCallable
all, blockingServerStreamingCall, blockingServerStreamingCall, call, call, call, first, serverStreamingCall, serverStreamingCall, withDefaultCallContext
-
-
-
-
Constructor Detail
-
TracedServerStreamingCallable
public TracedServerStreamingCallable(@Nonnull ServerStreamingCallable<RequestT,ResponseT> innerCallable, @Nonnull ApiTracerFactory tracerFactory, @Nonnull SpanName spanName)
-
-
Method Detail
-
call
public void call(RequestT request, ResponseObserver<ResponseT> responseObserver, ApiCallContext context)
Description copied from class:ServerStreamingCallableConduct a server streaming call with the givenApiCallContext.- Specified by:
callin classServerStreamingCallable<RequestT,ResponseT>- Parameters:
request- requestresponseObserver-ResponseObserverto observe the streaming responsescontext-ApiCallContextto provide context information for the RPC call.
-
-