Class TracedClientStreamingCallable<RequestT,ResponseT> (2.46.1)

publicclass TracedClientStreamingCallable<RequestT,ResponseT>extendsClientStreamingCallable<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.

Inheritance

java.lang.Object > ClientStreamingCallable > TracedClientStreamingCallable<RequestT,ResponseT>

Type Parameters

Name Description
RequestT
ResponseT

Constructors

TracedClientStreamingCallable(ClientStreamingCallable<RequestT,ResponseT> innerCallable, ApiTracerFactory tracerFactory, SpanName spanName)

publicTracedClientStreamingCallable(ClientStreamingCallable<RequestT,ResponseT>innerCallable,ApiTracerFactorytracerFactory,SpanNamespanName)
Parameters
Name Description
innerCallable ClientStreamingCallable<RequestT,ResponseT>
tracerFactory ApiTracerFactory
spanName SpanName

Methods

clientStreamingCall(ApiStreamObserver<ResponseT> responseObserver, ApiCallContext context)

publicApiStreamObserver<RequestT>clientStreamingCall(ApiStreamObserver<ResponseT>responseObserver,ApiCallContextcontext)

Conduct a client streaming call with the given ApiCallContext

Parameters
Name Description
responseObserver ApiStreamObserver<ResponseT>
context ApiCallContext
Returns
Type Description
ApiStreamObserver<RequestT>
Overrides

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.