Modifier and Type | Method and Description |
---|---|
Rpc.Options |
failFast(Boolean failFast) |
Rpc.Options |
protocol(String protocol) |
Rpc.Options |
timeoutInMs(Long timeoutInMs) |
public Rpc.Options protocol(String protocol)
protocol
- RPC protocol to use. Empty string means use the default protocol.
Options include 'grpc'.public Rpc.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 Rpc.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.