Uses of Class
io.grpc.CallOptions
Packages that use CallOptions
Package
Description
The gRPC core public API.
Interfaces and implementations that are internal to gRPC.
Service definitions and utilities with protobuf dependency for the pre-defined gRPC services.
API for the Stub layer.
-
Uses of CallOptions in io.grpc
Fields in io.grpc declared as CallOptionsModifier and TypeFieldDescriptionstatic final CallOptionsCallOptions.DEFAULTA blankCallOptionsthat all fields are not set.Methods in io.grpc that return CallOptionsModifier and TypeMethodDescriptionCallOptions.clearOnReadyThreshold()Resets to the default number of bytes that must be queued before the call will leave the 'wait for ready' state.CallCredentials.RequestInfo.getCallOptions()The call options used to call this RPC.ClientStreamTracer.StreamInfo.getCallOptions()Returns the effective CallOptions of the call.abstract CallOptionsLoadBalancer.PickSubchannelArgs.getCallOptions()Call options.CallOptions.withAuthority(String authority) Override the HTTP/2 authority the channel claims to be connecting to.CallOptions.withCallCredentials(CallCredentials credentials) Returns a newCallOptionswith the given call credentials.CallOptions.withCompression(String compressorName) Sets the compression to use for the call.CallOptions.withDeadline(Deadline deadline) Returns a newCallOptionswith the given absolute deadline.CallOptions.withDeadlineAfter(long duration, TimeUnit unit) Returns a newCallOptionswith a deadline that is after the givendurationfrom now.CallOptions.withExecutor(Executor executor) Returns a newCallOptionswithexecutorto be used instead of the default executor specified withManagedChannelBuilder.executor(Executor).CallOptions.withMaxInboundMessageSize(int maxSize) Sets the maximum allowed message size acceptable from the remote peer.CallOptions.withMaxOutboundMessageSize(int maxSize) Sets the maximum allowed message size acceptable sent to the remote peer.CallOptions.withOnReadyThreshold(int numBytes) Specifies how many bytes must be queued before the call is considered not ready to send more messages.<T> CallOptionsCallOptions.withOption(CallOptions.Key<T> key, T value) Sets a custom option.CallOptions.withoutWaitForReady()Disables 'wait for ready' feature for the call.CallOptions.withStreamTracerFactory(ClientStreamTracer.Factory factory) Returns a newCallOptionswith aClientStreamTracerFactoryin addition to the existing factories.CallOptions.withWaitForReady()Enables 'wait for ready' for the call.Methods in io.grpc with parameters of type CallOptionsModifier and TypeMethodDescriptionstatic BooleanInternalCallOptions.getWaitForReady(CallOptions callOptions) Gets the waitForReady bit ornullif it was never set.<ReqT,RespT>
ClientCall<ReqT, RespT> ClientInterceptor.interceptCall(MethodDescriptor<ReqT, RespT> method, CallOptions callOptions, Channel next) abstract <RequestT, ResponseT>
ClientCall<RequestT, ResponseT> Channel.newCall(MethodDescriptor<RequestT, ResponseT> methodDescriptor, CallOptions callOptions) Create aClientCallto the remote operation specified by the givenMethodDescriptor.ClientStreamTracer.StreamInfo.Builder.setCallOptions(CallOptions callOptions) Sets the effective CallOptions of the call. -
Uses of CallOptions in io.grpc.channelz.v1
Methods in io.grpc.channelz.v1 with parameters of type CallOptionsModifier and TypeMethodDescriptionprotected ChannelzGrpc.ChannelzBlockingStubChannelzGrpc.ChannelzBlockingStub.build(Channel channel, CallOptions callOptions) protected ChannelzGrpc.ChannelzFutureStubChannelzGrpc.ChannelzFutureStub.build(Channel channel, CallOptions callOptions) protected ChannelzGrpc.ChannelzStubChannelzGrpc.ChannelzStub.build(Channel channel, CallOptions callOptions) -
Uses of CallOptions in io.grpc.health.v1
Methods in io.grpc.health.v1 with parameters of type CallOptionsModifier and TypeMethodDescriptionprotected HealthGrpc.HealthBlockingStubHealthGrpc.HealthBlockingStub.build(Channel channel, CallOptions callOptions) protected HealthGrpc.HealthFutureStubHealthGrpc.HealthFutureStub.build(Channel channel, CallOptions callOptions) protected HealthGrpc.HealthStubHealthGrpc.HealthStub.build(Channel channel, CallOptions callOptions) -
Uses of CallOptions in io.grpc.internal
Methods in io.grpc.internal that return CallOptionsMethods in io.grpc.internal with parameters of type CallOptionsModifier and TypeMethodDescriptionstatic ClientStreamTracer[]GrpcUtil.getClientStreamTracers(CallOptions callOptions, Metadata headers, int previousAttempts, boolean isTransparentRetry) Gets stream tracers based on CallOptions.ClientTransport.newStream(MethodDescriptor<?, ?> method, Metadata headers, CallOptions callOptions, ClientStreamTracer[] tracers) Creates a new stream for sending messages to a remote end-point.static booleanGrpcUtil.shouldBeCountedForInUse(CallOptions callOptions) Returns true if an RPC with the given properties should be counted when calculating the in-use state of a transport.Constructors in io.grpc.internal with parameters of type CallOptionsModifierConstructorDescriptionprotectedAbstractClientStream(WritableBufferAllocator bufferAllocator, StatsTraceContext statsTraceCtx, TransportTracer transportTracer, Metadata headers, CallOptions callOptions, boolean useGet) protectedHttp2ClientStreamTransportState(int maxMessageSize, StatsTraceContext statsTraceCtx, TransportTracer transportTracer, CallOptions options) PickSubchannelArgsImpl(MethodDescriptor<?, ?> method, Metadata headers, CallOptions callOptions, LoadBalancer.PickDetailsConsumer pickDetailsConsumer) Creates call args object for given method with its call options, metadata.protectedTransportState(int maxMessageSize, StatsTraceContext statsTraceCtx, TransportTracer transportTracer, CallOptions options) -
Uses of CallOptions in io.grpc.lb.v1
Methods in io.grpc.lb.v1 with parameters of type CallOptionsModifier and TypeMethodDescriptionLoadBalancerGrpc.LoadBalancerBlockingStub.build(Channel channel, CallOptions callOptions) protected LoadBalancerGrpc.LoadBalancerFutureStubLoadBalancerGrpc.LoadBalancerFutureStub.build(Channel channel, CallOptions callOptions) protected LoadBalancerGrpc.LoadBalancerStubLoadBalancerGrpc.LoadBalancerStub.build(Channel channel, CallOptions callOptions) -
Uses of CallOptions in io.grpc.lookup.v1
Methods in io.grpc.lookup.v1 with parameters of type CallOptionsModifier and TypeMethodDescriptionRouteLookupServiceGrpc.RouteLookupServiceBlockingStub.build(Channel channel, CallOptions callOptions) RouteLookupServiceGrpc.RouteLookupServiceFutureStub.build(Channel channel, CallOptions callOptions) RouteLookupServiceGrpc.RouteLookupServiceStub.build(Channel channel, CallOptions callOptions) -
Uses of CallOptions in io.grpc.protobuf.services
Methods in io.grpc.protobuf.services with parameters of type CallOptionsModifier and TypeMethodDescriptionprotected abstract ClientInterceptorBinaryLogProvider.getClientInterceptor(String fullMethodName, CallOptions callOptions) Returns aClientInterceptorfor binary logging. gRPC is free to cache the interceptor, so the interceptor must be reusable across calls. -
Uses of CallOptions in io.grpc.reflection.v1
Methods in io.grpc.reflection.v1 with parameters of type CallOptionsModifier and TypeMethodDescriptionServerReflectionGrpc.ServerReflectionBlockingStub.build(Channel channel, CallOptions callOptions) ServerReflectionGrpc.ServerReflectionFutureStub.build(Channel channel, CallOptions callOptions) ServerReflectionGrpc.ServerReflectionStub.build(Channel channel, CallOptions callOptions) -
Uses of CallOptions in io.grpc.reflection.v1alpha
Methods in io.grpc.reflection.v1alpha with parameters of type CallOptionsModifier and TypeMethodDescriptionServerReflectionGrpc.ServerReflectionBlockingStub.build(Channel channel, CallOptions callOptions) ServerReflectionGrpc.ServerReflectionFutureStub.build(Channel channel, CallOptions callOptions) ServerReflectionGrpc.ServerReflectionStub.build(Channel channel, CallOptions callOptions) -
Uses of CallOptions in io.grpc.stub
Methods in io.grpc.stub that return CallOptionsModifier and TypeMethodDescriptionfinal CallOptionsAbstractStub.getCallOptions()TheCallOptionsof the stub.static CallOptionsInternalClientCalls.setStubType(CallOptions callOptions, InternalClientCalls.StubType stubType) ReturnsCallOptionswith the correspondingClientCalls.StubTypeset.Methods in io.grpc.stub with parameters of type CallOptionsModifier and TypeMethodDescriptionstatic <ReqT,RespT>
Iterator<RespT> ClientCalls.blockingServerStreamingCall(Channel channel, MethodDescriptor<ReqT, RespT> method, CallOptions callOptions, ReqT req) Executes a server-streaming call returning a blockingIteratorover the response stream.static <ReqT,RespT>
RespTClientCalls.blockingUnaryCall(Channel channel, MethodDescriptor<ReqT, RespT> method, CallOptions callOptions, ReqT req) Executes a unary call and blocks on the response.protected abstract SAbstractStub.build(Channel channel, CallOptions callOptions) Returns a new stub with the given channel for the provided method configurations.static InternalClientCalls.StubTypeInternalClientCalls.getStubType(CallOptions callOptions) ReturnsInternalClientCalls.StubTypefrom call options.static <T extends AbstractStub<T>>
TAbstractAsyncStub.newStub(AbstractStub.StubFactory<T> factory, Channel channel, CallOptions callOptions) Returns a new async stub with the given channel for the provided method configurations.static <T extends AbstractStub<T>>
TAbstractBlockingStub.newStub(AbstractStub.StubFactory<T> factory, Channel channel, CallOptions callOptions) Returns a new blocking stub with the given channel for the provided method configurations.static <T extends AbstractStub<T>>
TAbstractFutureStub.newStub(AbstractStub.StubFactory<T> factory, Channel channel, CallOptions callOptions) Returns a new future stub with the given channel for the provided method configurations.static <T extends AbstractStub<T>>
TAbstractStub.newStub(AbstractStub.StubFactory<T> factory, Channel channel, CallOptions callOptions) Returns a new stub with the given channel for the provided method configurations.AbstractStub.StubFactory.newStub(Channel channel, CallOptions callOptions) static CallOptionsInternalClientCalls.setStubType(CallOptions callOptions, InternalClientCalls.StubType stubType) ReturnsCallOptionswith the correspondingClientCalls.StubTypeset.Constructors in io.grpc.stub with parameters of type CallOptionsModifierConstructorDescriptionprotectedAbstractAsyncStub(Channel channel, CallOptions callOptions) protectedAbstractBlockingStub(Channel channel, CallOptions callOptions) protectedAbstractFutureStub(Channel channel, CallOptions callOptions) protectedAbstractStub(Channel channel, CallOptions callOptions) Constructor for use by subclasses.