Uses of Class
com.google.api.gax.grpc.GrpcCallContext
Packages that use GrpcCallContext
-
Uses of GrpcCallContext in com.google.api.gax.grpc
Methods in com.google.api.gax.grpc that return GrpcCallContextModifier and TypeMethodDescriptionGrpcResponseMetadata.addHandlers(ApiCallContext apiCallContext) Constructs a new call context from an existing ApiCallContext, and sets the CallOptions to add handlers to retrieve the headers and trailers, and make them available via the getMetadata and getTrailingMetadata methods.GrpcResponseMetadata.createContextWithHandlers()Constructs a new call context and sets the CallOptions to add handlers to retrieve the headers and trailers, and make them available via the getMetadata and getTrailingMetadata methods.static GrpcCallContextGrpcCallContext.createDefault()Returns an empty instance with a null channel and defaultCallOptions.GrpcTransportChannel.getEmptyCallContext()GrpcCallContext.nullToSelf(ApiCallContext inputContext) Returns inputContext cast toGrpcCallContext, or an emptyGrpcCallContextif inputContext is null.static GrpcCallContextGrpcCallContext.of(io.grpc.Channel channel, io.grpc.CallOptions callOptions) Returns an instance with the given channel andCallOptions.GrpcCallContext.withCallOptions(io.grpc.CallOptions newCallOptions) Returns a new instance with the call options set to the given call options.GrpcCallContext.withChannel(io.grpc.Channel newChannel) Returns a new instance with the channel set to the given channel.GrpcCallContext.withChannelAffinity(Integer affinity) GrpcCallContext.withCredentials(com.google.auth.Credentials newCredentials) GrpcCallContext.withEndpointContext(EndpointContext endpointContext) GrpcCallContext.withExtraHeaders(Map<String, List<String>> extraHeaders) <T> GrpcCallContextGrpcCallContext.withOption(ApiCallContext.Key<T> key, T value) GrpcCallContext.withRequestParamsDynamicHeaderOption(String requestParams) GrpcCallContext.withRetryableCodes(Set<StatusCode.Code> retryableCodes) GrpcCallContext.withRetrySettings(RetrySettings retrySettings) GrpcCallContext.withStreamIdleTimeout(org.threeten.bp.Duration streamIdleTimeout) GrpcCallContext.withStreamWaitTimeout(org.threeten.bp.Duration streamWaitTimeout) GrpcCallContext.withTimeout(org.threeten.bp.Duration timeout) GrpcCallContext.withTracer(ApiTracer tracer) GrpcCallContext.withTransportChannel(TransportChannel inputChannel)