RpcDispatcherLocal

RpcDispatcher implementation that dispatches RPC method calls to to backend ("state") object calls. This is for use in server environment and for testing.

Each backend class should be registered with RpcDispatcherLocal.Builder using generated State.register method.

Types

Link copied to clipboard
class Builder
Link copied to clipboard
class TargetBuilder<StateT : Any>(stateClass: KClass<StateT>, stateSerializer: (StateT) -> DataItem, stateDeserializer: (DataItem) -> StateT)

Properties

Link copied to clipboard
Link copied to clipboard
open override val exceptionMap: RpcExceptionMap

Functions

Link copied to clipboard
fun decodeStateParameter(stateParameter: DataItem): Any
Link copied to clipboard
open suspend override fun dispatch(target: String, method: String, args: DataItem): List<DataItem>
Link copied to clipboard