Class TracedBatchingCallable<RequestT,ResponseT> (2.49.0)

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

Name Description
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
Name Description
innerCallable UnaryCallable<RequestT,ResponseT>
tracerFactory ApiTracerFactory
spanName SpanName
batchingDescriptor BatchingDescriptor<RequestT,ResponseT>

Methods

futureCall(RequestT request, ApiCallContext context)

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

Perform a call asynchronously.

Parameters
Name Description
request RequestT
context ApiCallContext
Returns
Type Description
ApiFuture<ResponseT>
Overrides