Class TracedBatchingCallable<RequestT,ResponseT> (2.66.0)

publicclass TracedBatchingCallable<RequestT,ResponseT>extendsUnaryCallable<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)

publicTracedBatchingCallable(UnaryCallable<RequestT,ResponseT>innerCallable,ApiTracerFactorytracerFactory,SpanNamespanName,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)

publicApiFuture<ResponseT>futureCall(RequestTrequest,ApiCallContextcontext)

Perform a call asynchronously.

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

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.