TryRpc.Options

public static class TryRpc.Options

Optional attributes for TryRpc

Public Methods

TryRpc.Options
failFast(Boolean failFast)
TryRpc.Options
protocol(String protocol)
TryRpc.Options
timeoutInMs(Long timeoutInMs)

Inherited Methods

Public Methods

public TryRpc.Options failFast (Boolean failFast)

Parameters
failFast `boolean`. If `true` (default), then failures to connect (i.e., the server does not immediately respond) cause an RPC failure.

public TryRpc.Options protocol (String protocol)

Parameters
protocol RPC protocol to use. Empty string means use the default protocol. Options include 'grpc'.

public TryRpc.Options timeoutInMs (Long timeoutInMs)

Parameters
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`.