rd-framework / com.jetbrains.rd.framework.base / RdReactiveBase

RdReactiveBase

abstract class RdReactiveBase : RdBindableBase, IRdReactive

Constructors

<init>

RdReactiveBase()

Properties

async

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.

defaultScheduler

val defaultScheduler: <ERROR CLASS>

isLocalChange

var isLocalChange: Boolean

master

var master: Boolean

serializers

val serializers: ISerializers

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.

Inherited Properties

bindableChildren

val bindableChildren: MutableList<<ERROR CLASS><String, Any?>>

containingExt

val containingExt: RdExtBase?

isBound

val isBound: Boolean

location

var location: <ERROR CLASS>

parent

var parent: IRdDynamic?

protocol

open val protocol: IProtocol

rdid

open var rdid: RdId

serializationContext

open val serializationContext: SerializationCtx

Functions

assertBound

fun assertBound(): Unit

assertThreading

fun assertThreading(): Unit

Inherited Functions

bind

fun bind(lf: <ERROR CLASS>, parent: IRdDynamic, name: String): Unit

Inserts the node into the object graph under the given parent and assigns the specified name to it. The node will be removed from the graph when the specified lf lifetime is terminated.

getOrCreateExtension

fun <T : Any> getOrCreateExtension(name: String, create: () -> T): T
fun <T : Any> getOrCreateExtension(name: String, clazz: KClass<T>, create: () -> T): T

getValue

operator fun <T : List<IRdBindable?>> T.getValue(thisRef: Any?, property: KProperty<*>): T

identify

open fun identify(identities: IIdentities, id: RdId): Unit

Assigns IDs to this node and its child nodes in the graph.

init

open fun init(lifetime: <ERROR CLASS>): Unit

print

open fun print(printer: <ERROR CLASS>): Unit

synchronizeWith

fun synchronizeWith(lifetime: <ERROR CLASS>, otherBindable: RdBindableBase, accepts: (Any?) -> Boolean = { true }): Unit

toString

open fun toString(): String

Companion Object Properties

logAssert

val logAssert: <ERROR CLASS>

logReceived

val logReceived: <ERROR CLASS>

logSend

val logSend: <ERROR CLASS>

Extension Functions

bind

fun <T : IRdBindable?> T.bind(lf: <ERROR CLASS>, parent: IRdDynamic, name: String): Unit?

deepClonePolymorphic

fun <T> T.deepClonePolymorphic(): T

identify

fun <T : IRdBindable?> T.identify(identities: IIdentities, ids: RdId): Unit?

static

fun <T : RdBindableBase> T.static(id: Int): T

withId

fun <T : RdBindableBase> T.withId(id: RdId): T

withIdFromName

fun <T : RdBindableBase> T.withIdFromName(name: String): T

Inheritors

ProtocolContexts

class ProtocolContexts : RdReactiveBase

This class handles RdContext on protocol level. It tracks existing contexts and allows access to their value sets (when present)

RdCall

class RdCall<TReq, TRes> : RdReactiveBase, IRdCall<TReq, TRes>, IRdEndpoint<TReq, TRes>

RdExtBase

abstract class RdExtBase : RdReactiveBase

RdList

class RdList<V : Any> : RdReactiveBase

RdMap

class RdMap<K : Any, V : Any> : RdReactiveBase

RdPerContextMap

class RdPerContextMap<K : Any, V : RdBindableBase> : RdReactiveBase, IPerContextMap<K, V>

RdPropertyBase

abstract class RdPropertyBase<T> : RdReactiveBase

RdSet

class RdSet<T : Any> : RdReactiveBase

RdSignal

class RdSignal<T> : RdReactiveBase