Class TracedBidiCallable<RequestT,ResponseT> (2.20.1)

Stay organized with collections Save and categorize content based on your preferences.
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

NameDescription
RequestT
ResponseT

Constructors

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

public TracedBidiCallable(BidiStreamingCallable<RequestT,ResponseT> innerCallable, ApiTracerFactory tracerFactory, SpanName spanName)
Parameters
NameDescription
innerCallableBidiStreamingCallable<RequestT,ResponseT>
tracerFactoryApiTracerFactory
spanNameSpanName

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
NameDescription
responseObserverResponseObserver<ResponseT>
onReadyClientStreamReadyObserver<RequestT>
contextApiCallContext
Returns
TypeDescription
ClientStream<RequestT>
Overrides