Class TracedBidiCallable<RequestT,ResponseT> (2.48.0)

public class TracedBidiCallable<RequestT,ResponseT> extends BidiStreamingCallable<RequestT,ResponseT>

A wrapper callable that will wrap a callable chain in a trace.

For internal use only.

Inheritance

java.lang.Object > BidiStreamingCallable > TracedBidiCallable<RequestT,ResponseT>

Type Parameters

Name Description
RequestT
ResponseT

Constructors

TracedBidiCallable(BidiStreamingCallable<RequestT,ResponseT> innerCallable, ApiTracerFactory tracerFactory, SpanName spanName)

public TracedBidiCallable(BidiStreamingCallable<RequestT,ResponseT> innerCallable, ApiTracerFactory tracerFactory, SpanName spanName)
Parameters
Name Description
innerCallable BidiStreamingCallable<RequestT,ResponseT>
tracerFactory ApiTracerFactory
spanName SpanName

Methods

internalCall(ResponseObserver<ResponseT> responseObserver, ClientStreamReadyObserver<RequestT> onReady, ApiCallContext context)

public ClientStream<RequestT> internalCall(ResponseObserver<ResponseT> responseObserver, ClientStreamReadyObserver<RequestT> onReady, ApiCallContext context)

The "base" method from which other forms of calls are derived. Most users will not need to call this method directly.

However, it is public, since library authors might want to call this method in adaptor classes.

Parameters
Name Description
responseObserver ResponseObserver<ResponseT>
onReady ClientStreamReadyObserver<RequestT>
context ApiCallContext
Returns
Type Description
ClientStream<RequestT>
Overrides