Uses of Class
io.grpc.CallOptions
Packages that use CallOptions
Package
Description
The gRPC core public API.
The in-process transport which is for when a server is in the same process as the client.
Interfaces and implementations that are internal to gRPC.
The main transport implementation based on Netty,
for both the client and the server.
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 TypeFieldDescriptionprivate CallOptions
ClientStreamTracer.StreamInfo.Builder.callOptions
private final CallOptions
ClientStreamTracer.StreamInfo.callOptions
static final CallOptions
CallOptions.DEFAULT
A blankCallOptions
that all fields are not set.Methods in io.grpc that return CallOptionsModifier and TypeMethodDescriptionprivate CallOptions
CallOptions.Builder.build()
CallOptions.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 CallOptions
LoadBalancer.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 newCallOptions
with the given call credentials.CallOptions.withCompression
(String compressorName) Sets the compression to use for the call.CallOptions.withDeadline
(Deadline deadline) Returns a newCallOptions
with the given absolute deadline.CallOptions.withDeadlineAfter
(long duration, TimeUnit unit) Returns a newCallOptions
with a deadline that is after the givenduration
from now.CallOptions.withExecutor
(Executor executor) Returns a newCallOptions
withexecutor
to be used instead of the default executor specified withManagedChannelBuilder.executor(java.util.concurrent.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> CallOptions
CallOptions.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 newCallOptions
with aClientStreamTracerFactory
in 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 Boolean
InternalCallOptions.getWaitForReady
(CallOptions callOptions) Gets the waitForReady bit ornull
if 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 aClientCall
to the remote operation specified by the givenMethodDescriptor
.<ReqT,
RespT>
ClientCall<ReqT, RespT> ClientInterceptors.InterceptorChannel.newCall
(MethodDescriptor<ReqT, RespT> method, CallOptions callOptions) ClientStreamTracer.StreamInfo.Builder.setCallOptions
(CallOptions callOptions) Sets the effective CallOptions of the call.private static CallOptions.Builder
CallOptions.toBuilder
(CallOptions other) Copy CallOptions.Constructors in io.grpc with parameters of type CallOptionsModifierConstructorDescription(package private)
StreamInfo
(CallOptions callOptions, int previousAttempts, boolean isTransparentRetry) -
Uses of CallOptions in io.grpc.channelz.v1
Methods in io.grpc.channelz.v1 with parameters of type CallOptionsModifier and TypeMethodDescriptionprotected ChannelzGrpc.ChannelzBlockingStub
ChannelzGrpc.ChannelzBlockingStub.build
(Channel channel, CallOptions callOptions) protected ChannelzGrpc.ChannelzFutureStub
ChannelzGrpc.ChannelzFutureStub.build
(Channel channel, CallOptions callOptions) protected ChannelzGrpc.ChannelzStub
ChannelzGrpc.ChannelzStub.build
(Channel channel, CallOptions callOptions) Constructors in io.grpc.channelz.v1 with parameters of type CallOptionsModifierConstructorDescriptionprivate
ChannelzBlockingStub
(Channel channel, CallOptions callOptions) private
ChannelzFutureStub
(Channel channel, CallOptions callOptions) private
ChannelzStub
(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.HealthBlockingStub
HealthGrpc.HealthBlockingStub.build
(Channel channel, CallOptions callOptions) protected HealthGrpc.HealthFutureStub
HealthGrpc.HealthFutureStub.build
(Channel channel, CallOptions callOptions) protected HealthGrpc.HealthStub
HealthGrpc.HealthStub.build
(Channel channel, CallOptions callOptions) Constructors in io.grpc.health.v1 with parameters of type CallOptionsModifierConstructorDescriptionprivate
HealthBlockingStub
(Channel channel, CallOptions callOptions) private
HealthFutureStub
(Channel channel, CallOptions callOptions) private
HealthStub
(Channel channel, CallOptions callOptions) -
Uses of CallOptions in io.grpc.inprocess
Fields in io.grpc.inprocess declared as CallOptionsModifier and TypeFieldDescriptionprivate final CallOptions
InProcessTransport.InProcessStream.callOptions
(package private) final CallOptions
InProcessTransport.InProcessStream.InProcessClientStream.callOptions
Methods in io.grpc.inprocess with parameters of type CallOptionsModifier and TypeMethodDescriptionInProcessTransport.newStream
(MethodDescriptor<?, ?> method, Metadata headers, CallOptions callOptions, ClientStreamTracer[] tracers) Constructors in io.grpc.inprocess with parameters of type CallOptionsModifierConstructorDescription(package private)
InProcessClientStream
(CallOptions callOptions, StatsTraceContext statsTraceContext) private
InProcessStream
(MethodDescriptor<?, ?> method, Metadata headers, CallOptions callOptions, String authority, StatsTraceContext statsTraceContext) -
Uses of CallOptions in io.grpc.internal
Fields in io.grpc.internal declared as CallOptionsModifier and TypeFieldDescriptionprivate CallOptions
ClientCallImpl.callOptions
private CallOptions
ManagedChannelImpl.ConfigSelectingClientCall.callOptions
(package private) final CallOptions
ManagedChannelImpl.RealChannel.PendingCall.callOptions
private final CallOptions
MetadataApplierImpl.callOptions
private final CallOptions
PickSubchannelArgsImpl.callOptions
Methods in io.grpc.internal that return CallOptionsMethods in io.grpc.internal with parameters of type CallOptionsModifier and TypeMethodDescriptionprivate Executor
ManagedChannelImpl.getCallExecutor
(CallOptions callOptions) static ClientStreamTracer[]
GrpcUtil.getClientStreamTracers
(CallOptions callOptions, Metadata headers, int previousAttempts, boolean isTransparentRetry) Gets stream tracers based on CallOptions.<ReqT,
RespT>
ClientCall<ReqT, RespT> ManagedChannelImplBuilder.InterceptorFactoryWrapper.interceptCall
(MethodDescriptor<ReqT, RespT> method, CallOptions callOptions, Channel next) <RequestT,
ResponseT>
ClientCall<RequestT, ResponseT> ForwardingManagedChannel.newCall
(MethodDescriptor<RequestT, ResponseT> methodDescriptor, CallOptions callOptions) <ReqT,
RespT>
ClientCall<ReqT, RespT> ManagedChannelImpl.newCall
(MethodDescriptor<ReqT, RespT> method, CallOptions callOptions) <ReqT,
RespT>
ClientCall<ReqT, RespT> ManagedChannelImpl.RealChannel.newCall
(MethodDescriptor<ReqT, RespT> method, CallOptions callOptions) <RequestT,
ResponseT>
ClientCall<RequestT, ResponseT> OobChannel.newCall
(MethodDescriptor<RequestT, ResponseT> methodDescriptor, CallOptions callOptions) <RequestT,
ResponseT>
ClientCall<RequestT, ResponseT> SubchannelChannel.newCall
(MethodDescriptor<RequestT, ResponseT> methodDescriptor, CallOptions callOptions) private <ReqT,
RespT>
ClientCall<ReqT, RespT> ManagedChannelImpl.RealChannel.newClientCall
(MethodDescriptor<ReqT, RespT> method, CallOptions callOptions) CallCredentialsApplyingTransportFactory.CallCredentialsApplyingTransport.newStream
(MethodDescriptor<?, ?> method, Metadata headers, CallOptions callOptions, ClientStreamTracer[] tracers) ClientCallImpl.ClientStreamProvider.newStream
(MethodDescriptor<?, ?> method, CallOptions callOptions, Metadata headers, Context context) ClientTransport.newStream
(MethodDescriptor<?, ?> method, Metadata headers, CallOptions callOptions, ClientStreamTracer[] tracers) Creates a new stream for sending messages to a remote end-point.final ClientStream
DelayedClientTransport.newStream
(MethodDescriptor<?, ?> method, Metadata headers, CallOptions callOptions, ClientStreamTracer[] tracers) If aLoadBalancer.SubchannelPicker
is being, or has been provided viaDelayedClientTransport.reprocess(io.grpc.LoadBalancer.SubchannelPicker)
, the last picker will be consulted.FailingClientTransport.newStream
(MethodDescriptor<?, ?> method, Metadata headers, CallOptions callOptions, ClientStreamTracer[] tracers) ForwardingConnectionClientTransport.newStream
(MethodDescriptor<?, ?> method, Metadata headers, CallOptions callOptions, ClientStreamTracer[] tracers) InternalSubchannel.CallTracingTransport.newStream
(MethodDescriptor<?, ?> method, Metadata headers, CallOptions callOptions, ClientStreamTracer[] tracers) ManagedChannelImpl.ChannelStreamProvider.newStream
(MethodDescriptor<?, ?> method, CallOptions callOptions, Metadata headers, Context context) static boolean
GrpcUtil.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 CallOptionsModifierConstructorDescriptionprotected
AbstractClientStream
(WritableBufferAllocator bufferAllocator, StatsTraceContext statsTraceCtx, TransportTracer transportTracer, Metadata headers, CallOptions callOptions, boolean useGet) (package private)
ClientCallImpl
(MethodDescriptor<ReqT, RespT> method, Executor executor, CallOptions callOptions, ClientCallImpl.ClientStreamProvider clientStreamProvider, ScheduledExecutorService deadlineCancellationExecutor, CallTracer channelCallsTracer, InternalConfigSelector configSelector) (package private)
ConfigSelectingClientCall
(InternalConfigSelector configSelector, Channel channel, Executor channelExecutor, MethodDescriptor<ReqT, RespT> method, CallOptions callOptions) protected
Http2ClientStreamTransportState
(int maxMessageSize, StatsTraceContext statsTraceCtx, TransportTracer transportTracer, CallOptions options) (package private)
MetadataApplierImpl
(ClientTransport transport, MethodDescriptor<?, ?> method, Metadata origHeaders, CallOptions callOptions, MetadataApplierImpl.MetadataApplierListener listener, ClientStreamTracer[] tracers) (package private)
PendingCall
(Context context, MethodDescriptor<ReqT, RespT> method, CallOptions callOptions) PickSubchannelArgsImpl
(MethodDescriptor<?, ?> method, Metadata headers, CallOptions callOptions, LoadBalancer.PickDetailsConsumer pickDetailsConsumer) Creates call args object for given method with its call options, metadata.protected
TransportState
(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.LoadBalancerFutureStub
LoadBalancerGrpc.LoadBalancerFutureStub.build
(Channel channel, CallOptions callOptions) protected LoadBalancerGrpc.LoadBalancerStub
LoadBalancerGrpc.LoadBalancerStub.build
(Channel channel, CallOptions callOptions) Constructors in io.grpc.lb.v1 with parameters of type CallOptionsModifierConstructorDescriptionprivate
LoadBalancerBlockingStub
(Channel channel, CallOptions callOptions) private
LoadBalancerFutureStub
(Channel channel, CallOptions callOptions) private
LoadBalancerStub
(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) Constructors in io.grpc.lookup.v1 with parameters of type CallOptionsModifierConstructorDescriptionprivate
RouteLookupServiceBlockingStub
(Channel channel, CallOptions callOptions) private
RouteLookupServiceFutureStub
(Channel channel, CallOptions callOptions) private
RouteLookupServiceStub
(Channel channel, CallOptions callOptions) -
Uses of CallOptions in io.grpc.netty
Methods in io.grpc.netty with parameters of type CallOptionsModifier and TypeMethodDescriptionNettyClientTransport.newStream
(MethodDescriptor<?, ?> method, Metadata headers, CallOptions callOptions, ClientStreamTracer[] tracers) Constructors in io.grpc.netty with parameters of type CallOptionsModifierConstructorDescription(package private)
NettyClientStream
(NettyClientStream.TransportState state, MethodDescriptor<?, ?> method, Metadata headers, io.netty.channel.Channel channel, io.netty.util.AsciiString authority, io.netty.util.AsciiString scheme, io.netty.util.AsciiString userAgent, StatsTraceContext statsTraceCtx, TransportTracer transportTracer, CallOptions callOptions, boolean useGetForSafeMethods) protected
TransportState
(NettyClientHandler handler, io.netty.channel.EventLoop eventLoop, int maxMessageSize, StatsTraceContext statsTraceCtx, TransportTracer transportTracer, String methodName, CallOptions options) -
Uses of CallOptions in io.grpc.protobuf.services
Methods in io.grpc.protobuf.services with parameters of type CallOptionsModifier and TypeMethodDescriptionprotected abstract ClientInterceptor
BinaryLogProvider.getClientInterceptor
(String fullMethodName, CallOptions callOptions) Returns aClientInterceptor
for binary logging.BinaryLogProviderImpl.getClientInterceptor
(String fullMethodName, CallOptions callOptions) <ReqT,
RespT>
ClientCall<ReqT, RespT> BinaryLogProvider.BinaryLogShim.interceptCall
(MethodDescriptor<ReqT, RespT> method, CallOptions callOptions, Channel next) -
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) Constructors in io.grpc.reflection.v1 with parameters of type CallOptionsModifierConstructorDescriptionprivate
ServerReflectionBlockingStub
(Channel channel, CallOptions callOptions) private
ServerReflectionFutureStub
(Channel channel, CallOptions callOptions) private
ServerReflectionStub
(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) Constructors in io.grpc.reflection.v1alpha with parameters of type CallOptionsModifierConstructorDescriptionprivate
ServerReflectionBlockingStub
(Channel channel, CallOptions callOptions) private
ServerReflectionFutureStub
(Channel channel, CallOptions callOptions) private
ServerReflectionStub
(Channel channel, CallOptions callOptions) -
Uses of CallOptions in io.grpc.stub
Fields in io.grpc.stub declared as CallOptionsMethods in io.grpc.stub that return CallOptionsModifier and TypeMethodDescriptionfinal CallOptions
AbstractStub.getCallOptions()
TheCallOptions
of the stub.static CallOptions
InternalClientCalls.setStubType
(CallOptions callOptions, InternalClientCalls.StubType stubType) ReturnsCallOptions
with the correspondingClientCalls.StubType
set.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 blockingIterator
over 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 S
AbstractStub.build
(Channel channel, CallOptions callOptions) Returns a new stub with the given channel for the provided method configurations.static InternalClientCalls.StubType
InternalClientCalls.getStubType
(CallOptions callOptions) ReturnsInternalClientCalls.StubType
from call options.<ReqT,
RespT>
ClientCall<ReqT, RespT> MetadataUtils.HeaderAttachingClientInterceptor.interceptCall
(MethodDescriptor<ReqT, RespT> method, CallOptions callOptions, Channel next) <ReqT,
RespT>
ClientCall<ReqT, RespT> MetadataUtils.MetadataCapturingClientInterceptor.interceptCall
(MethodDescriptor<ReqT, RespT> method, CallOptions callOptions, Channel next) 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 CallOptions
InternalClientCalls.setStubType
(CallOptions callOptions, InternalClientCalls.StubType stubType) ReturnsCallOptions
with the correspondingClientCalls.StubType
set.Constructors in io.grpc.stub with parameters of type CallOptionsModifierConstructorDescriptionprotected
AbstractAsyncStub
(Channel channel, CallOptions callOptions) protected
AbstractBlockingStub
(Channel channel, CallOptions callOptions) protected
AbstractFutureStub
(Channel channel, CallOptions callOptions) protected
AbstractStub
(Channel channel, CallOptions callOptions) Constructor for use by subclasses.