rd-framework / com.jetbrains.rd.framework.impl / CallSiteWiredRdTask

CallSiteWiredRdTask

class CallSiteWiredRdTask<TReq, TRes> : WiredRdTask<TReq, TRes>

Constructors

<init>

CallSiteWiredRdTask(outerLifetime: <ERROR CLASS>, call: RdCall<TReq, TRes>, rdid: RdId, wireScheduler: <ERROR CLASS>)

Inherited Properties

call

val call: RdCall<TReq, TRes>

isBound

open val isBound: Boolean

location

open val location: <ERROR CLASS>

protocol

open val protocol: IProtocol

rdid

open val rdid: RdId

serializationContext

open val serializationContext: SerializationCtx

wire

val wire: IWire

wireScheduler

open val wireScheduler: <ERROR CLASS>

Scheduler on which wire invokes callback onWireReceived. Default is the same as protocol's one.

Functions

onWireReceived

fun onWireReceived(buffer: AbstractBuffer): Unit

Callback that wire triggers when it receives messaged

Extension Properties

isCanceled

val <T> IRdTask<T>.isCanceled: Boolean

isFaulted

val <T> IRdTask<T>.isFaulted: Boolean

isSucceeded

val <T> IRdTask<T>.isSucceeded: Boolean

Extension Functions

asCompletableFuture

fun <T> IRdTask<T>.asCompletableFuture(): <ERROR CLASS>

await

suspend fun <T> IRdTask<T>.await(): T

deepClonePolymorphic

fun <T> T.deepClonePolymorphic(): T

wait

fun <T> IRdTask<T>.wait(timeoutMs: Long, pump: () -> Unit): Boolean