abstract class RPCDispatcherIntended to service transient clients only (not p2p nodes) for short-lived, transient request/response pairs. If you need robustness, this is the wrong system. If you dont want a response, this is probably the wrong system (you could just send a message). If you want complex customisation of how requests/responses are handled, this is probably the wrong system.
| <init> |
RPCDispatcher(ops: RPCOps, userService: RPCUserService)Intended to service transient clients only (not p2p nodes) for short-lived, transient request/response pairs. If you need robustness, this is the wrong system. If you dont want a response, this is probably the wrong system (you could just send a message). If you want complex customisation of how requests/responses are handled, this is probably the wrong system. |
| ops |
val ops: RPCOps |
| userService |
val userService: RPCUserService |
| dispatch |
fun dispatch(msg: ClientRPCRequestMessage): Unit |
| getUser |
open fun getUser(message: <ERROR CLASS>): User |
| send |
abstract fun send(bits: SerializedBytes<*>, toAddress: String): Unit |
| start |
fun start(rpcConsumer: <ERROR CLASS>, rpcNotificationConsumer: <ERROR CLASS>?, onExecutor: AffinityExecutor): Unit |