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(io.grpc.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.
|