Class TracedBatchingCallable<RequestT,ResponseT> (2.32.1)

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

This callable wraps a batching callable chain in a ApiTracer.

For internal use only.

Inheritance

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

Type Parameters

NameDescription
RequestT
ResponseT

Constructors

TracedBatchingCallable(UnaryCallable<RequestT,ResponseT> innerCallable, ApiTracerFactory tracerFactory, SpanName spanName, BatchingDescriptor<RequestT,ResponseT> batchingDescriptor)

public TracedBatchingCallable(UnaryCallable<RequestT,ResponseT> innerCallable, ApiTracerFactory tracerFactory, SpanName spanName, BatchingDescriptor<RequestT,ResponseT> batchingDescriptor)
Parameters
NameDescription
innerCallableUnaryCallable<RequestT,ResponseT>
tracerFactoryApiTracerFactory
spanNameSpanName
batchingDescriptorBatchingDescriptor<RequestT,ResponseT>

Methods

futureCall(RequestT request, ApiCallContext context)

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

Perform a call asynchronously.

Parameters
NameDescription
requestRequestT
contextApiCallContext
Returns
TypeDescription
ApiFuture<ResponseT>
Overrides