Modifier and Type | Method and Description |
---|---|
TryRpc.Options |
failFast(Boolean failFast) |
TryRpc.Options |
protocol(String protocol) |
TryRpc.Options |
timeoutInMs(Long timeoutInMs) |
public TryRpc.Options protocol(String protocol)
protocol
- RPC protocol to use. Empty string means use the default protocol.
Options include 'grpc'.public TryRpc.Options failFast(Boolean failFast)
failFast
- `boolean`. If `true` (default), then failures to connect
(i.e., the server does not immediately respond) cause an RPC failure.public TryRpc.Options timeoutInMs(Long timeoutInMs)
timeoutInMs
- `int`. If `0` (default), then the kernel will run the RPC
request and only time out if the RPC deadline passes or the session times out.
If this value is greater than `0`, then the op will raise an exception if
the RPC takes longer than `timeout_in_ms`.Copyright © 2022. All rights reserved.