Uses of Interface
com.google.api.gax.rpc.ApiCallContext
Packages that use ApiCallContext
-
Uses of ApiCallContext in com.google.api.gax.batching
Constructors in com.google.api.gax.batching with parameters of type ApiCallContextModifierConstructorDescriptionBatcherImpl(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
Methods in com.google.api.gax.rpc that return ApiCallContextModifier and TypeMethodDescriptionabstract ApiCallContextPageContext.getCallContext()abstract ApiCallContextClientContext.getDefaultCallContext()TransportChannel.getEmptyCallContext()Returns an emptyApiCallContextthat is compatible with thisTransportChannel.ApiCallContext.merge(ApiCallContext inputCallContext) For any values ininputCallContextthat 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> ApiCallContextApiCallContext.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 givenRetrySettingsset.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 newApiCallContextwith the givenApiTracer.ApiCallContext.withTransportChannel(TransportChannel channel) Returns a new ApiCallContext with the given channel set.Methods in com.google.api.gax.rpc with parameters of type ApiCallContextModifier 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.voidBidiStreamingCallable.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 voidServerStreamingCallable.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 givenApiCallContextstatic <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 ofcalls are derived.ApiCallContext.merge(ApiCallContext inputCallContext) For any values ininputCallContextthat 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 newOperationFutureto watch an operation that has been initiated previously.voidServerStreamingCallable.serverStreamingCall(RequestT request, ApiStreamObserver<ResponseT> responseObserver, ApiCallContext context) Deprecated.Please use theResponseObservervariant instead.abstract ClientContext.BuilderClientContext.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 newBidiStreamingCallablewith anApiCallContextthat is used as a default when none is supplied in individual calls.ClientStreamingCallable.withDefaultCallContext(ApiCallContext defaultCallContext) Returns a newClientStreamingCallablewith anApiCallContextthat is used as a default when none is supplied in individual calls.OperationCallable.withDefaultCallContext(ApiCallContext defaultCallContext) Returns a newOperationCallablewith anApiCallContextthat is used as a default when none is supplied in individual calls.ServerStreamingCallable.withDefaultCallContext(ApiCallContext defaultCallContext) Returns a newServerStreamingCallablewith anApiCallContextthat is used as a default when none is supplied in individual calls.UnaryCallable.withDefaultCallContext(ApiCallContext defaultCallContext) Returns a newUnaryCallablewith anApiCallContextthat is used as a default when none is supplied in individual calls. -
Uses of ApiCallContext in com.google.api.gax.tracing
Methods in com.google.api.gax.tracing with parameters of type ApiCallContextModifier and TypeMethodDescriptionvoidTracedServerStreamingCallable.call(RequestT request, ResponseObserver<ResponseT> responseObserver, ApiCallContext context) TracedOperationCallable.cancel(String operationName, ApiCallContext context) Wrap operation cancellation in aApiTracerFactory.OperationType.Unarytrace.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.LongRunningApiTracer.TracedOperationInitialCallable.futureCall(RequestT request, ApiCallContext context) TracedUnaryCallable.futureCall(RequestT request, ApiCallContext context) Calls the wrappedUnaryCallablewithin 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.LongRunningApiTracer.
BidiStreamingCallable.splitCall(ResponseObserver, ApiCallContext)instead.