Class TracedOperationCallable<RequestT,ResponseT,MetadataT> (2.12.2)

public class TracedOperationCallable<RequestT,ResponseT,MetadataT> extends OperationCallable<RequestT,ResponseT,MetadataT>

This callable wraps a OperationCallable in a ApiTracer.

For internal use only.

Inheritance

java.lang.Object > OperationCallable > TracedOperationCallable<RequestT,ResponseT,MetadataT>

Type Parameters

NameDescription
RequestT
ResponseT
MetadataT

Constructors

TracedOperationCallable(OperationCallable<RequestT,ResponseT,MetadataT> innerCallable, ApiTracerFactory tracerFactory, SpanName spanName)

public TracedOperationCallable(OperationCallable<RequestT,ResponseT,MetadataT> innerCallable, ApiTracerFactory tracerFactory, SpanName spanName)
Parameters
NameDescription
innerCallableOperationCallable<RequestT,ResponseT,MetadataT>
tracerFactoryApiTracerFactory
spanNameSpanName

Methods

cancel(String operationName, ApiCallContext context)

public ApiFuture<Void> cancel(String operationName, ApiCallContext context)

Wrap operation cancellation in a OperationType#Unary trace.

Parameters
NameDescription
operationNameString
contextApiCallContext
Returns
TypeDescription
com.google.api.core.ApiFuture<Void>
Overrides

futureCall(RequestT request, ApiCallContext context)

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

Wrap the initial start polling logical operations in a single parent trace using a OperationType#LongRunning ApiTracer.

Parameters
NameDescription
requestRequestT
contextApiCallContext
Returns
TypeDescription
OperationFuture<ResponseT,MetadataT>
Overrides

resumeFutureCall(String operationName, ApiCallContext context)

public OperationFuture<ResponseT,MetadataT> resumeFutureCall(String operationName, ApiCallContext context)

Wrap the polling logical operations in a single parent trace using a OperationType#LongRunning ApiTracer.

Parameters
NameDescription
operationNameString
contextApiCallContext
Returns
TypeDescription
OperationFuture<ResponseT,MetadataT>
Overrides