ServerCallHandlers

Defines the grpc service API handlers that are used in the stub code generated from our domain-specific code generator.

Defines the grpc service API handlers that are used in the stub code generated from our domain-specific code generator.

class Object
trait Matchable
class Any

Value members

Concrete methods

def streamingToStreamingCall[T, R](f: (Observable[T], Metadata) => Observable[R], options: ServerCallOptions)(scheduler: Scheduler): ServerCallHandler[T, R]

Defines a grpc service call handler that receives several requests request from the client and returns several responses from the server.

Defines a grpc service call handler that receives several requests request from the client and returns several responses from the server.

Value Params
f

is the function that turns a request and metadata into a response.

options

is the configuration to configure options for this call.

scheduler

is the (implicit) scheduler available in the service definition.

Returns

a grpc server call handler that will be responsible for processing this call.

def streamingToUnaryCall[T, R](f: (Observable[T], Metadata) => Task[R], options: ServerCallOptions)(scheduler: Scheduler): ServerCallHandler[T, R]

Defines a grpc service call handler that receives several requests request from the client and returns one response from the server.

Defines a grpc service call handler that receives several requests request from the client and returns one response from the server.

Value Params
f

is the function that turns a request and metadata into a response.

options

is the configuration to configure options for this call.

scheduler

is the (implicit) scheduler available in the service definition.

Returns

a grpc server call handler that will be responsible for processing this call.

def unaryToStreamingCall[T, R](f: (T, Metadata) => Observable[R], options: ServerCallOptions)(scheduler: Scheduler): ServerCallHandler[T, R]

Defines a grpc service call handler that receives only one request from the client and returns several responses from the server.

Defines a grpc service call handler that receives only one request from the client and returns several responses from the server.

Value Params
f

is the function that turns a request and metadata into a response.

options

is the configuration to configure options for this call.

scheduler

is the (implicit) scheduler available in the service definition.

Returns

a grpc server call handler that will be responsible for processing this call.

def unaryToUnaryCall[T, R](f: (T, Metadata) => Task[R], options: ServerCallOptions)(scheduler: Scheduler): ServerCallHandler[T, R]

Defines a grpc service call handler that receives only one request from the client and returns one response from the server.

Defines a grpc service call handler that receives only one request from the client and returns one response from the server.

Value Params
f

is the function that turns a request and metadata into a response.

options

is the configuration to configure options for this call.

scheduler

is the (implicit) scheduler available in the service definition.

Returns

a grpc server call handler that will be responsible for processing this call.