class RdCall<TReq, TRes> : RdReactiveBase, IRdCall<TReq, TRes>, IRdEndpoint<TReq, TRes>
companion object Companion : ISerializer<RdCall<*, *>> |
RdCall(cancellationScheduler: <ERROR CLASS>? = null, handlerScheduler: <ERROR CLASS>? = null, handler: (<ERROR CLASS>, TReq) -> RdTask<TRes>)RdCall(requestSzr: ISerializer<TReq> = Polymorphic<TReq>(), responseSzr: ISerializer<TRes> = Polymorphic<TRes>())RdCall(cancellationScheduler: <ERROR CLASS>? = null, handlerScheduler: <ERROR CLASS>? = null, handler: (TReq) -> TRes)
Assigns a handler that executes the API synchronously. |
lateinit var bindLifetime: <ERROR CLASS> |
|
lateinit var serializationContext: SerializationCtx |
|
val wireScheduler: <ERROR CLASS>
Scheduler on which wire invokes callback onWireReceived. Default is the same as protocol's one. |
open var async: Boolean
If set to true, local changes to this object can be performed on any thread. Otherwise, local changes can be performed only on the UI thread. |
|
val defaultScheduler: <ERROR CLASS> |
|
var isLocalChange: Boolean |
|
var master: Boolean |
|
val serializers: ISerializers |
|
val wire: IWire |
fun deepClone(): IRdBindable |
|
fun init(lifetime: <ERROR CLASS>): Unit |
|
fun onWireReceived(buffer: AbstractBuffer): Unit
Callback that wire triggers when it receives messaged |
|
fun set(cancellationScheduler: <ERROR CLASS>?, handlerScheduler: <ERROR CLASS>?, handler: (<ERROR CLASS>, TReq) -> RdTask<TRes>): Unit
Assigns a handler that executes the API asynchronously. |
|
fun
Asynchronously invokes the API with the parameters given as request and waits for the result. The returned task will have its result value assigned through the given responseScheduler. fun fun start(lifetime: <ERROR CLASS>, request: TReq): IRdTask<TRes>fun start(lifetime: <ERROR CLASS>, request: TReq, responseScheduler: <ERROR CLASS>?): IRdTask<TRes> |
|
suspend fun startSuspending(lifetime: <ERROR CLASS>, request: TReq, responseScheduler: <ERROR CLASS>?): TRes |
|
fun sync(request: TReq, timeouts: RpcTimeouts?): TRes
Invokes the API with the parameters given as request and waits for the result. |
fun assertBound(): Unit |
|
fun assertThreading(): Unit |
|
abstract fun set(cancellationScheduler: <ERROR CLASS>? = null, handlerScheduler: <ERROR CLASS>? = null, handler: (<ERROR CLASS>, TReq) -> RdTask<TRes>): Unit
Assigns a handler that executes the API asynchronously. open fun set(cancellationScheduler: <ERROR CLASS>? = null, handlerScheduler: <ERROR CLASS>? = null, handler: (TReq) -> TRes): Unit
Assigns a handler that executes the API synchronously. |
var respectSyncCallTimeouts: Boolean |
fun read(ctx: SerializationCtx, buffer: AbstractBuffer): RdCall<*, *>fun <TReq, TRes> read(ctx: SerializationCtx, buffer: AbstractBuffer, requestSzr: ISerializer<TReq>, responseSzr: ISerializer<TRes>): RdCall<TReq, TRes> |
|
fun write(ctx: SerializationCtx, buffer: AbstractBuffer, value: RdCall<*, *>): Unit |
fun <T : IRdBindable?> T.bind(lf: <ERROR CLASS>, parent: IRdDynamic, name: String): Unit? |
|
fun <T> T.deepClonePolymorphic(): T |
|
fun <T : IRdBindable?> T.identify(identities: IIdentities, ids: RdId): Unit? |
|
fun <TReq, TRes> IRdEndpoint<TReq, TRes>.setSuspend(cancellationScheduler: <ERROR CLASS>? = null, handlerScheduler: <ERROR CLASS>? = null, handler: suspend (<ERROR CLASS>, TReq) -> TRes): Unit |
|
fun <TReq, TRes> IRdCall<TReq, TRes>.startAndAdviseSuccess(request: TReq, onSuccess: (TRes) -> Unit): Unitfun <TReq, TRes> IRdCall<TReq, TRes>.startAndAdviseSuccess(lifetime: <ERROR CLASS>, request: TReq, onSuccess: (TRes) -> Unit): Unit |
|
fun <T : RdBindableBase> T.static(id: Int): T |
|
fun <T : RdBindableBase> T.withId(id: RdId): T |
|
fun <T : RdBindableBase> T.withIdFromName(name: String): T |