| Package | Description |
|---|---|
| io.grpc |
The gRPC core public API.
|
| io.grpc.auth |
Implementations of
CallCredentials and authentication related API. |
| io.grpc.stub |
API for the Stub layer.
|
| Modifier and Type | Field and Description |
|---|---|
static CallOptions |
CallOptions.DEFAULT
A blank
CallOptions that all fields are not set. |
| Modifier and Type | Method and Description |
|---|---|
abstract CallOptions |
LoadBalancer.PickSubchannelArgs.getCallOptions()
Call options.
|
CallOptions |
ClientStreamTracer.StreamInfo.getCallOptions()
Returns the effective CallOptions of the call.
|
CallOptions |
CallOptions.withAuthority(String authority)
Override the HTTP/2 authority the channel claims to be connecting to.
|
CallOptions |
CallOptions.withCallCredentials(CallCredentials credentials)
Returns a new
CallOptions with the given call credentials. |
CallOptions |
CallOptions.withCompression(String compressorName)
Sets the compression to use for the call.
|
CallOptions |
CallOptions.withDeadline(Deadline deadline)
Returns a new
CallOptions with the given absolute deadline. |
CallOptions |
CallOptions.withDeadlineAfter(long duration,
TimeUnit unit)
Returns a new
CallOptions with a deadline that is after the given duration from
now. |
CallOptions |
CallOptions.withExecutor(Executor executor)
Returns a new
CallOptions with executor to be used instead of the default
executor specified with ManagedChannelBuilder.executor(java.util.concurrent.Executor). |
CallOptions |
CallOptions.withMaxInboundMessageSize(int maxSize)
Sets the maximum allowed message size acceptable from the remote peer.
|
CallOptions |
CallOptions.withMaxOutboundMessageSize(int maxSize)
Sets the maximum allowed message size acceptable sent to the remote peer.
|
<T> CallOptions |
CallOptions.withOption(CallOptions.Key<T> key,
T value)
Sets a custom option.
|
CallOptions |
CallOptions.withoutWaitForReady()
Disables 'wait for ready' feature for the call.
|
CallOptions |
CallOptions.withStreamTracerFactory(ClientStreamTracer.Factory factory)
Returns a new
CallOptions with a ClientStreamTracerFactory in addition to
the existing factories. |
CallOptions |
CallOptions.withWaitForReady()
Enables
'wait for ready' feature for the call.
|
| Modifier and Type | Method and Description |
|---|---|
<ReqT,RespT> |
ClientInterceptor.interceptCall(MethodDescriptor<ReqT,RespT> method,
CallOptions callOptions,
Channel next)
|
abstract <RequestT,ResponseT> |
Channel.newCall(MethodDescriptor<RequestT,ResponseT> methodDescriptor,
CallOptions callOptions)
Create a
ClientCall to the remote operation specified by the given
MethodDescriptor. |
ClientStreamTracer |
ClientStreamTracer.Factory.newClientStreamTracer(CallOptions callOptions,
Metadata headers)
Deprecated.
use
#newClientStreamTracer(StreamInfo, Metadata) instead |
ClientStreamTracer.StreamInfo.Builder |
ClientStreamTracer.StreamInfo.Builder.setCallOptions(CallOptions callOptions)
Sets the effective CallOptions of the call.
|
| Modifier and Type | Method and Description |
|---|---|
<ReqT,RespT> |
ClientAuthInterceptor.interceptCall(MethodDescriptor<ReqT,RespT> method,
CallOptions callOptions,
Channel next)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
CallOptions |
AbstractStub.getCallOptions()
The
CallOptions of the stub. |
| Modifier and Type | Method and Description |
|---|---|
static <ReqT,RespT> |
ClientCalls.blockingServerStreamingCall(Channel channel,
MethodDescriptor<ReqT,RespT> method,
CallOptions callOptions,
ReqT req)
Executes a server-streaming call returning a blocking
Iterator over the
response stream. |
static <ReqT,RespT> |
ClientCalls.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.
|
| Constructor and Description |
|---|
AbstractStub(Channel channel,
CallOptions callOptions)
Constructor for use by subclasses, with the default
CallOptions. |