Class TracedUnaryCallable<RequestT,ResponseT> (2.20.1)

public class TracedUnaryCallable<RequestT,ResponseT> extends UnaryCallable<RequestT,ResponseT>

This callable wraps a callable chain in a ApiTracer.

For internal use only.

Inheritance

java.lang.Object > UnaryCallable > TracedUnaryCallable<RequestT,ResponseT>

Type Parameters

NameDescription
RequestT
ResponseT

Constructors

TracedUnaryCallable(UnaryCallable<RequestT,ResponseT> innerCallable, ApiTracerFactory tracerFactory, SpanName spanName)

public TracedUnaryCallable(UnaryCallable<RequestT,ResponseT> innerCallable, ApiTracerFactory tracerFactory, SpanName spanName)
Parameters
NameDescription
innerCallableUnaryCallable<RequestT,ResponseT>
tracerFactoryApiTracerFactory
spanNameSpanName

Methods

futureCall(RequestT request, ApiCallContext context)

public ApiFuture<ResponseT> futureCall(RequestT request, ApiCallContext context)

Calls the wrapped UnaryCallable within the context of a new trace.

Parameters
NameDescription
requestRequestT

the request to send.

contextApiCallContext

ApiCallContext to make the call with.

Returns
TypeDescription
com.google.api.core.ApiFuture<ResponseT>
Overrides