automorph.handler.ApiRequestHandler
final case class ApiRequestHandler[Node, Codec <: MessageCodec[Node], Effect[_], Context](effectSystem: EffectSystem[Effect], rpcProtocol: RpcProtocol[Node, Codec, Context], apiBindings: ListMap[String, HandlerBinding[Node, Effect, Context]], discovery: Boolean) extends RequestHandler[Effect, Context]
RPC request handler for bound APIs.
Processes remote API requests and invoke bound API methods.
Note: Consider this class to be private and do not use it. It remains public only due to Scala 2 macro limitations.
Type parameters
-
Codec
-
message codec plugin type
-
Context
-
RPC message context type
-
Effect
-
effect type
-
Node
-
message node type
Value parameters
-
apiBindings
-
API method bindings
-
discovery
-
enable automatic provision of service discovery via RPC functions returning bound API schema
-
effectSystem
-
effect system plugin
-
rpcProtocol
-
RPC protocol plugin
Attributes
-
Constructor
-
Creates a new RPC request handler using specified effect system and RPC protocol plugins with corresponding message context type.
-
Graph
-
-
Supertypes
-
trait Serializable
class Object
trait Matchable
class Any
Show all
Members list
Enable or disable automatic provision of service discovery via RPC functions returning bound API schema.
Enable or disable automatic provision of service discovery via RPC functions returning bound API schema.
Value parameters
-
discovery
-
service discovery enabled
Attributes
-
Returns
-
RPC request handler
-
Definition Classes
-
Processes an RPC request by invoking a bound remote function based on the specified RPC request along with request context and return an RPC response.
Processes an RPC request by invoking a bound remote function based on the specified RPC request along with request context and return an RPC response.
Value parameters
-
context
-
request context
-
id
-
request correlation identifier included in logs associated with the request
-
requestBody
-
request message body
Attributes
-
Returns
-
request processing result
-
Definition Classes
-
Returns a string representation of the object.
Returns a string representation of the object.
The default representation is platform dependent.
Attributes
-
Returns
-
a string representation of the object.
-
Definition Classes
-
Any