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
ConstructorDescriptionTracedServerStreamingCallable
(ServerStreamingCallable<RequestT, ResponseT> innerCallable, ApiTracerFactory tracerFactory, SpanName spanName) -
Method Summary
Modifier and TypeMethodDescriptionvoid
call
(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 Details
-
TracedServerStreamingCallable
public TracedServerStreamingCallable(@Nonnull ServerStreamingCallable<RequestT, ResponseT> innerCallable, @Nonnull ApiTracerFactory tracerFactory, @Nonnull SpanName spanName)
-
-
Method Details
-
call
public void call(RequestT request, ResponseObserver<ResponseT> responseObserver, ApiCallContext context) Description copied from class:ServerStreamingCallable
Conduct a server streaming call with the givenApiCallContext
.- Specified by:
call
in classServerStreamingCallable<RequestT,
ResponseT> - Parameters:
request
- requestresponseObserver
-ResponseObserver
to observe the streaming responsescontext
-ApiCallContext
to provide context information for the RPC call.
-