Uses of Interface
com.google.api.gax.rpc.ApiCallContext
-
Uses of ApiCallContext in com.google.api.gax.batching
ModifierConstructorDescriptionBatcherImpl
(BatchingDescriptor<ElementT, ElementResultT, RequestT, ResponseT> batchingDescriptor, UnaryCallable<RequestT, ResponseT> unaryCallable, RequestT prototype, BatchingSettings batchingSettings, ScheduledExecutorService executor, FlowController flowController, ApiCallContext callContext) -
Uses of ApiCallContext in com.google.api.gax.rpc
Modifier and TypeMethodDescriptionabstract ApiCallContext
PageContext.getCallContext()
abstract ApiCallContext
ClientContext.getDefaultCallContext()
TransportChannel.getEmptyCallContext()
Returns an emptyApiCallContext
that is compatible with thisTransportChannel
.ApiCallContext.merge
(ApiCallContext inputCallContext) For any values ininputCallContext
that are not null, override the corresponding values in the present instance.ApiCallContext.nullToSelf
(ApiCallContext inputContext) If inputContext is not null, returns it; if it is null, returns the present instance.ApiCallContext.withCredentials
(com.google.auth.Credentials credentials) Returns a new ApiCallContext with the given credentials set.ApiCallContext.withEndpointContext
(EndpointContext endpointContext) Returns a new ApiCallContext with the given Endpoint Context.ApiCallContext.withExtraHeaders
(Map<String, List<String>> extraHeaders) Return a new ApiCallContext with the extraHeaders merged into the present instance.<T> ApiCallContext
ApiCallContext.withOption
(ApiCallContext.Key<T> key, T value) Return a new ApiCallContext with additional option merged into the present instance.ApiCallContext.withRetryableCodes
(Set<StatusCode.Code> retryableCodes) Returns a new ApiCallContext with the given retryable codes set.ApiCallContext.withRetrySettings
(RetrySettings retrySettings) Returns a new ApiCallContext with the givenRetrySettings
set.ApiCallContext.withStreamIdleTimeout
(org.threeten.bp.Duration streamIdleTimeout) Returns a new ApiCallContext with the given stream idle timeout set.ApiCallContext.withStreamWaitTimeout
(org.threeten.bp.Duration streamWaitTimeout) Returns a new ApiCallContext with the given stream timeout set.ApiCallContext.withTimeout
(org.threeten.bp.Duration timeout) Returns a new ApiCallContext with the given timeout set.ApiCallContext.withTracer
(ApiTracer tracer) Returns a newApiCallContext
with the givenApiTracer
.ApiCallContext.withTransportChannel
(TransportChannel channel) Returns a new ApiCallContext with the given channel set.Modifier and TypeMethodDescriptionBidiStreamingCallable.bidiStreamingCall
(ApiStreamObserver<ResponseT> responseObserver, ApiCallContext context) Deprecated.ServerStreamingCallable.blockingServerStreamingCall
(RequestT request, ApiCallContext context) Deprecated.Please use call() instead.BidiStreamingCallable.call
(ApiCallContext context) Send requests and iterate over server responses.void
BidiStreamingCallable.call
(BidiStreamObserver<RequestT, ResponseT> bidiObserver, ApiCallContext context) Listens to server responses and send requests when the network is free.OperationCallable.call
(RequestT request, ApiCallContext context) Perform a call synchronously.ServerStreamingCallable.call
(RequestT request, ApiCallContext context) Conduct a server streaming call with the givenApiCallContext
.abstract void
ServerStreamingCallable.call
(RequestT request, ResponseObserver<ResponseT> responseObserver, ApiCallContext context) Conduct a server streaming call with the givenApiCallContext
.UnaryCallable.call
(RequestT request, ApiCallContext context) Perform a call synchronously.OperationCallable.cancel
(String operationName, ApiCallContext context) Sends a cancellation request to the server for the operation with nameoperationName
.abstract ApiStreamObserver<RequestT>
ClientStreamingCallable.clientStreamingCall
(ApiStreamObserver<ResponseT> responseObserver, ApiCallContext context) Conduct a client streaming call with the givenApiCallContext
static <RequestT,
ResponseT, ResourceT>
PageContext<RequestT,ResponseT, ResourceT> PageContext.create
(UnaryCallable<RequestT, ResponseT> callable, PagedListDescriptor<RequestT, ResponseT, ResourceT> pageDescriptor, RequestT request, ApiCallContext callContext) BatchingCallable.futureCall
(RequestT request, ApiCallContext context) abstract OperationFuture<ResponseT,
MetadataT> OperationCallable.futureCall
(RequestT request, ApiCallContext context) Initiates an operation asynchronously.PagedCallable.futureCall
(RequestT request, ApiCallContext context) TranslatingUnaryCallable.futureCall
(OuterRequestT request, ApiCallContext context) UnaryCallable.futureCall
(RequestT request, ApiCallContext context) Perform a call asynchronously.PagedListResponseFactory.getFuturePagedResponse
(UnaryCallable<RequestT, ResponseT> callable, RequestT request, ApiCallContext context, ApiFuture<ResponseT> futureResponse) abstract ClientStream<RequestT>
BidiStreamingCallable.internalCall
(ResponseObserver<ResponseT> responseObserver, ClientStreamReadyObserver<RequestT> onReady, ApiCallContext context) The "base" method from which other forms ofcall
s are derived.ApiCallContext.merge
(ApiCallContext inputCallContext) For any values ininputCallContext
that are not null, override the corresponding values in the present instance.ApiCallContext.nullToSelf
(ApiCallContext inputContext) If inputContext is not null, returns it; if it is null, returns the present instance.abstract OperationFuture<ResponseT,
MetadataT> OperationCallable.resumeFutureCall
(String operationName, ApiCallContext context) Creates a newOperationFuture
to watch an operation that has been initiated previously.void
ServerStreamingCallable.serverStreamingCall
(RequestT request, ApiStreamObserver<ResponseT> responseObserver, ApiCallContext context) Deprecated.Please use theResponseObserver
variant instead.abstract ClientContext.Builder
ClientContext.Builder.setDefaultCallContext
(ApiCallContext defaultCallContext) BidiStreamingCallable.splitCall
(ResponseObserver<ResponseT> responseObserver, ApiCallContext context) Send requests to the server and listens to responses.BidiStreamingCallable.withDefaultCallContext
(ApiCallContext defaultCallContext) Returns a newBidiStreamingCallable
with anApiCallContext
that is used as a default when none is supplied in individual calls.ClientStreamingCallable.withDefaultCallContext
(ApiCallContext defaultCallContext) Returns a newClientStreamingCallable
with anApiCallContext
that is used as a default when none is supplied in individual calls.OperationCallable.withDefaultCallContext
(ApiCallContext defaultCallContext) Returns a newOperationCallable
with anApiCallContext
that is used as a default when none is supplied in individual calls.ServerStreamingCallable.withDefaultCallContext
(ApiCallContext defaultCallContext) Returns a newServerStreamingCallable
with anApiCallContext
that is used as a default when none is supplied in individual calls.UnaryCallable.withDefaultCallContext
(ApiCallContext defaultCallContext) Returns a newUnaryCallable
with anApiCallContext
that is used as a default when none is supplied in individual calls. -
Uses of ApiCallContext in com.google.api.gax.tracing
Modifier and TypeMethodDescriptionvoid
TracedServerStreamingCallable.call
(RequestT request, ResponseObserver<ResponseT> responseObserver, ApiCallContext context) TracedOperationCallable.cancel
(String operationName, ApiCallContext context) Wrap operation cancellation in aApiTracerFactory.OperationType.Unary
trace.TracedClientStreamingCallable.clientStreamingCall
(ApiStreamObserver<ResponseT> responseObserver, ApiCallContext context) TracedBatchingCallable.futureCall
(RequestT request, ApiCallContext context) TracedOperationCallable.futureCall
(RequestT request, ApiCallContext context) Wrap the initial start polling logical operations in a single parent trace using aApiTracerFactory.OperationType.LongRunning
ApiTracer
.TracedOperationInitialCallable.futureCall
(RequestT request, ApiCallContext context) TracedUnaryCallable.futureCall
(RequestT request, ApiCallContext context) Calls the wrappedUnaryCallable
within the context of a new trace.TracedBidiCallable.internalCall
(ResponseObserver<ResponseT> responseObserver, ClientStreamReadyObserver<RequestT> onReady, ApiCallContext context) TracedOperationCallable.resumeFutureCall
(String operationName, ApiCallContext context) Wrap the polling logical operations in a single parent trace using aApiTracerFactory.OperationType.LongRunning
ApiTracer
.
BidiStreamingCallable.splitCall(ResponseObserver, ApiCallContext)
instead.