Package com.google.api.gax.tracing
Class TracedBatchingCallable<RequestT,ResponseT>
java.lang.Object
com.google.api.gax.rpc.UnaryCallable<RequestT,ResponseT>
com.google.api.gax.tracing.TracedBatchingCallable<RequestT,ResponseT>
@BetaApi("The surface for tracing is not stable and might change in the future")
@InternalApi("For internal use by google-cloud-java clients only")
public class TracedBatchingCallable<RequestT,ResponseT>
extends UnaryCallable<RequestT,ResponseT>
This callable wraps a batching callable chain in a
ApiTracer
.
For internal use only.
-
Constructor Summary
ConstructorDescriptionTracedBatchingCallable
(UnaryCallable<RequestT, ResponseT> innerCallable, ApiTracerFactory tracerFactory, SpanName spanName, BatchingDescriptor<RequestT, ResponseT> batchingDescriptor) -
Method Summary
Modifier and TypeMethodDescriptionfutureCall
(RequestT request, ApiCallContext context) Perform a call asynchronously.Methods inherited from class com.google.api.gax.rpc.UnaryCallable
call, call, futureCall, withDefaultCallContext
-
Constructor Details
-
TracedBatchingCallable
public TracedBatchingCallable(UnaryCallable<RequestT, ResponseT> innerCallable, ApiTracerFactory tracerFactory, SpanName spanName, BatchingDescriptor<RequestT, ResponseT> batchingDescriptor)
-
-
Method Details
-
futureCall
Description copied from class:UnaryCallable
Perform a call asynchronously.- Specified by:
futureCall
in classUnaryCallable<RequestT,
ResponseT> context
-ApiCallContext
to make the call with- Returns:
ApiFuture
for the call result
-