A field that is not set is null.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | |
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final String | |
| private final CallCredentials | |
| private final Object[][] | |
| private final Deadline | |
| public static final CallOptions | DEFAULT
A blank |
| private final Executor | |
| private final Integer | |
| private final Integer | |
| private final List | |
| private final Boolean | waitForReady
Opposite to fail fast. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public String | |
| public CallCredentials | |
| public Deadline | |
| public Executor | getExecutor()
Returns the executor override to use for this specific call, or |
| public Integer | |
| public Integer | getMaxOutboundMessageSize()
Gets the maximum allowed message size acceptable to send the remote peer. |
| public <T> T | getOption(CallOptions.
Key identifying option keyGet the value for a custom option or its inherent default. |
| public List | |
| pack-priv Boolean | |
| public boolean | |
| private static CallOptions. | |
| public String | |
| public CallOptions | withAuthority(String authority)
Override the HTTP/2 authority the channel claims to be connecting to. |
| public CallOptions | withCallCredentials(CallCredentials credentials)
Returns a new |
| public CallOptions | |
| public CallOptions | withDeadline(Deadline
the deadline or deadline)null for unsetting the deadline.Returns a new |
| public CallOptions | withDeadlineAfter(long duration, TimeUnit unit)
Returns a new |
| public CallOptions | withExecutor(Executor executor)
Returns a new |
| public CallOptions | withMaxInboundMessageSize(int maxSize)
Sets the maximum allowed message size acceptable from the remote peer. |
| public CallOptions | withMaxOutboundMessageSize(int maxSize)
Sets the maximum allowed message size acceptable sent to the remote peer. |
| public <T> CallOptions | |
| public CallOptions | |
| public CallOptions | withStreamTracerFactory(ClientStreamTracer.
Returns a new |
| public CallOptions |
| authority | back to summary |
|---|---|
| private final String authority
| |
| compressorName | back to summary |
|---|---|
| private final String compressorName
| |
| credentials | back to summary |
|---|---|
| private final CallCredentials credentials
| |
| customOptions | back to summary |
|---|---|
| private final Object[][] customOptions | |
| deadline | back to summary |
|---|---|
| private final Deadline deadline
| |
| DEFAULT | back to summary |
|---|---|
| public static final CallOptions DEFAULT A blank | |
| executor | back to summary |
|---|---|
| private final Executor executor
| |
| maxInboundMessageSize | back to summary |
|---|---|
| private final Integer maxInboundMessageSize
| |
| maxOutboundMessageSize | back to summary |
|---|---|
| private final Integer maxOutboundMessageSize
| |
| streamTracerFactories | back to summary |
|---|---|
| private final List<ClientStreamTracer. | |
| waitForReady | back to summary |
|---|---|
| private final Boolean waitForReady Opposite to fail fast. | |
| CallOptions | back to summary |
|---|---|
| private CallOptions(CallOptions. | |
| getAuthority | back to summary |
|---|---|
| public String getAuthority() Override the HTTP/2 authority the channel claims to be connecting to. This is not generally safe. Overriding allows advanced users to re-use a single Channel for multiple services, even if those services are hosted on different domain names. That assumes the server is virtually hosting multiple domains and is guaranteed to continue doing so. It is rare for a service provider to make such a guarantee. At this time, there is no security verification of the overridden value, such as making sure the authority matches the server's TLS certificate.
| |
| getCompressor | back to summary |
|---|---|
| public String getCompressor() Returns the compressor's name.
| |
| getCredentials | back to summary |
|---|---|
| public CallCredentials getCredentials() Returns the call credentials.
| |
| getDeadline | back to summary |
|---|---|
| public Deadline getDeadline() Returns the deadline or
| |
| getExecutor | back to summary |
|---|---|
| public Executor getExecutor() Returns the executor override to use for this specific call, or
| |
| getMaxInboundMessageSize | back to summary |
|---|---|
| public Integer getMaxInboundMessageSize() Gets the maximum allowed message size acceptable from the remote peer.
| |
| getMaxOutboundMessageSize | back to summary |
|---|---|
| public Integer getMaxOutboundMessageSize() Gets the maximum allowed message size acceptable to send the remote peer.
| |
| getOption | back to summary |
|---|---|
| public <T> T getOption(CallOptions. Get the value for a custom option or its inherent default.
| |
| getStreamTracerFactories | back to summary |
|---|---|
| public List Returns an immutable list of
| |
| getWaitForReady | back to summary |
|---|---|
| pack-priv Boolean getWaitForReady() | |
| isWaitForReady | back to summary |
|---|---|
| public boolean isWaitForReady() Returns whether 'wait for ready' option is enabled for the call. 'Fail fast' is the default option for gRPC calls and 'wait for ready' is the opposite to it. | |
| toBuilder | back to summary |
|---|---|
| private static CallOptions. Copy CallOptions. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| withAuthority | back to summary |
|---|---|
| public CallOptions withAuthority(String authority) Override the HTTP/2 authority the channel claims to be connecting to. This is not generally safe. Overriding allows advanced users to re-use a single Channel for multiple services, even if those services are hosted on different domain names. That assumes the server is virtually hosting multiple domains and is guaranteed to continue doing so. It is rare for a service provider to make such a guarantee. At this time, there is no security verification of the overridden value, such as making sure the authority matches the server's TLS certificate.
| |
| withCallCredentials | back to summary |
|---|---|
| public CallOptions withCallCredentials(CallCredentials credentials) Returns a new | |
| withCompression | back to summary |
|---|---|
| public CallOptions withCompression(String compressorName) Sets the compression to use for the call. The compressor must be a valid name known in the
It is only safe to call this if the server supports the compression format chosen. There is no negotiation performed; if the server does not support the compression chosen, the call will fail. | |
| withDeadline | back to summary |
|---|---|
| public CallOptions withDeadline(Deadline deadline) Returns a new This is mostly used for propagating an existing deadline.
| |
| withDeadlineAfter | back to summary |
|---|---|
| public CallOptions withDeadlineAfter(long duration, TimeUnit unit) Returns a new | |
| withExecutor | back to summary |
|---|---|
| public CallOptions withExecutor(Executor executor) Returns a new | |
| withMaxInboundMessageSize | back to summary |
|---|---|
| public CallOptions withMaxInboundMessageSize(int maxSize) Sets the maximum allowed message size acceptable from the remote peer. If unset, this will
default to the value set on the
| |
| withMaxOutboundMessageSize | back to summary |
|---|---|
| public CallOptions withMaxOutboundMessageSize(int maxSize) Sets the maximum allowed message size acceptable sent to the remote peer.
| |
| withOption | back to summary |
|---|---|
| public <T> CallOptions withOption(CallOptions. Sets a custom option. Any existing value for the key is overwritten.
| |
| withoutWaitForReady | back to summary |
|---|---|
| public CallOptions withoutWaitForReady() Disables 'wait for ready' feature for the call. This method should be rarely used because the default is without 'wait for ready'. | |
| withStreamTracerFactory | back to summary |
|---|---|
| public CallOptions withStreamTracerFactory(ClientStreamTracer. Returns a new This method doesn't replace existing factories, or try to de-duplicate factories.
| |
| withWaitForReady | back to summary |
|---|---|
| public CallOptions withWaitForReady() Enables 'wait for ready' for the call. Wait-for-ready queues the RPC until a connection is available. This may dramatically increase the latency of the RPC, but avoids failing "unnecessarily." The default queues the RPC until an attempt to connect has completed, but fails RPCs without sending them if unable to connect. | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv String | |
| pack-priv String | |
| pack-priv CallCredentials | |
| pack-priv Object[][] | |
| pack-priv Deadline | |
| pack-priv Executor | |
| pack-priv Integer | |
| pack-priv Integer | |
| pack-priv List | |
| pack-priv Boolean |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private CallOptions |
| authority | back to summary |
|---|---|
| pack-priv String authority | |
| compressorName | back to summary |
|---|---|
| pack-priv String compressorName | |
| credentials | back to summary |
|---|---|
| pack-priv CallCredentials credentials | |
| customOptions | back to summary |
|---|---|
| pack-priv Object[][] customOptions | |
| deadline | back to summary |
|---|---|
| pack-priv Deadline deadline | |
| executor | back to summary |
|---|---|
| pack-priv Executor executor | |
| maxInboundMessageSize | back to summary |
|---|---|
| pack-priv Integer maxInboundMessageSize | |
| maxOutboundMessageSize | back to summary |
|---|---|
| pack-priv Integer maxOutboundMessageSize | |
| streamTracerFactories | back to summary |
|---|---|
| pack-priv List<ClientStreamTracer. | |
| waitForReady | back to summary |
|---|---|
| pack-priv Boolean waitForReady | |
| Builder | back to summary |
|---|---|
| pack-priv Builder() | |
| build | back to summary |
|---|---|
| private CallOptions build() | |
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final T |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static < Key type T> CallOptions. | |
| public static < Key type T> CallOptions. | Returns: Key objecta debug string that describes this key. debugString, T default value to return when value for key not set defaultValue)Factory method for creating instances of |
| public T | |
| public static < Key type T> CallOptions. | Returns: Key objecta string used to describe this key, used for debugging. debugString, T default value to return when value for key not set defaultValue)
Deprecated
Use
Factory method for creating instances of create or createWithDefault instead.
Key.
|
| public String |
| debugString | back to summary |
|---|---|
| private final String debugString | |
| defaultValue | back to summary |
|---|---|
| private final T defaultValue | |
| Key | back to summary |
|---|---|
| private Key(String debugString, T defaultValue) | |
| create | back to summary |
|---|---|
| public static <T> CallOptions. Factory method for creating instances of
| |
| createWithDefault | back to summary |
|---|---|
| public static <T> CallOptions. Factory method for creating instances of
| |
| getDefault | back to summary |
|---|---|
| public T getDefault() Returns the user supplied default value for this key. | |
| of | back to summary |
|---|---|
| public static <T> CallOptions. Deprecated Use Factory method for creating instances of
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |