Rpc.Options

public static class Rpc.Options

Optional attributes for Rpc

Public Methods

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

Inherited Methods

boolean
equals(Object arg0)
final Class<?>
getClass()
int
hashCode()
final void
notify()
final void
notifyAll()
String
toString()
final void
wait(long arg0, int arg1)
final void
wait(long arg0)
final void
wait()

Public Methods

public Rpc.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 Rpc.Options protocol (String protocol)

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

public Rpc.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`.