@InternalApi(value="For internal use by google-cloud-java clients only") public class TracedOperationCallable<RequestT,ResponseT,MetadataT> extends OperationCallable<RequestT,ResponseT,MetadataT>
| Constructor and Description |
|---|
TracedOperationCallable(OperationCallable<RequestT,ResponseT,MetadataT> innerCallable,
ApiTracerFactory tracerFactory,
SpanName spanName) |
| Modifier and Type | Method and Description |
|---|---|
com.google.api.core.ApiFuture<Void> |
cancel(String operationName,
ApiCallContext context)
Wrap operation cancellation in a
ApiTracerFactory.OperationType.Unary trace. |
OperationFuture<ResponseT,MetadataT> |
futureCall(RequestT request,
ApiCallContext context)
Wrap the initial start polling logical operations in a single parent trace using a
ApiTracerFactory.OperationType.LongRunning ApiTracer. |
OperationFuture<ResponseT,MetadataT> |
resumeFutureCall(String operationName,
ApiCallContext context)
Wrap the polling logical operations in a single parent trace using a
ApiTracerFactory.OperationType.LongRunning ApiTracer. |
call, call, cancel, futureCall, resumeFutureCall, withDefaultCallContextpublic TracedOperationCallable(@Nonnull OperationCallable<RequestT,ResponseT,MetadataT> innerCallable, @Nonnull ApiTracerFactory tracerFactory, @Nonnull SpanName spanName)
public OperationFuture<ResponseT,MetadataT> futureCall(RequestT request, ApiCallContext context)
ApiTracerFactory.OperationType.LongRunning ApiTracer.futureCall in class OperationCallable<RequestT,ResponseT,MetadataT>request - The request to initiate the operation.context - ApiCallContext to make the call withOperationFuture for the call resultpublic OperationFuture<ResponseT,MetadataT> resumeFutureCall(String operationName, ApiCallContext context)
ApiTracerFactory.OperationType.LongRunning ApiTracer.resumeFutureCall in class OperationCallable<RequestT,ResponseT,MetadataT>operationName - The name of the operation to resume.context - ApiCallContext to make the call withOperationFuture for the call result.public com.google.api.core.ApiFuture<Void> cancel(String operationName, ApiCallContext context)
ApiTracerFactory.OperationType.Unary trace.cancel in class OperationCallable<RequestT,ResponseT,MetadataT>operationName - The name of the operation to cancel.context - ApiCallContext to make the call with