ServerTransport

automorph.spi.ServerTransport

Server transport protocol plugin.

Enables RPC server to receive requests and send responses using specific transport protocol.

Actively receives requests to be processed by the RPC handler and sends responses.

Type parameters

Context

RPC message context type

Effect

effect type

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class RabbitMqServer[Effect]
class AkkaServer[Effect]
class JettyServer[Effect]
class NanoServer[Effect]
class UndertowServer[Effect]
class VertxServer[Effect]
Show all

Members list

Value members

Abstract methods

def close(): Effect[Unit]

Stops this server transport freeing the underlying resources.

Stops this server transport freeing the underlying resources.

Attributes

Returns

nothing

def effectSystem: EffectSystem[Effect]

Effect system plugin.

Effect system plugin.

Attributes

def init(): Effect[Unit]

Starts this server to process incoming requests.

Starts this server to process incoming requests.

Attributes

Returns

active RPC server

def withHandler(handler: RequestHandler[Effect, Context]): ServerTransport[Effect, Context]

Create a copy of this server transport with specified RPC request handler.

Create a copy of this server transport with specified RPC request handler.

Value parameters

handler

RPC request handler

Attributes

Returns

server transport