ClientOptions

sealed abstract class ClientOptions
Companion:
object
class Object
trait Matchable
class Any

Value members

Concrete methods

def configureCallOptions(fn: CallOptions => CallOptions): ClientOptions

Function that is applied on io.grpc.CallOptions.DEFAULT for each new RPC call.

Function that is applied on io.grpc.CallOptions.DEFAULT for each new RPC call.

def withErrorAdapter(ea: PartialFunction[StatusRuntimeException, Exception]): ClientOptions

Adapt io.grpc.StatusRuntimeException into a different exception.

Adapt io.grpc.StatusRuntimeException into a different exception.

Prefetch up to @param n messages from a server. The client will try to keep the internal buffer filled according to the provided value.

Prefetch up to @param n messages from a server. The client will try to keep the internal buffer filled according to the provided value.

If the provided value is less than 1 it defaults to 1.

Concrete fields

val callOptionsFn: CallOptions => CallOptions
val errorAdapter: PartialFunction[StatusRuntimeException, Exception]