IRdReactive

interface IRdReactive : IRdBindable, IRdWireable

A non-root node in an object graph which can be synchronized with its remote copy over a network or a similar connection, and which allows to subscribe to its changes.

Functions

Link copied to clipboard
abstract fun bind(    lf: Lifetime,     parent: IRdDynamic,     name: String)

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.

Link copied to clipboard
open fun deepClone(): IRdBindable

Creates a clone of this IRdBindable not bound to any protocol

Link copied to clipboard
abstract fun identify(identities: IIdentities, id: RdId)

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

Link copied to clipboard
abstract fun onWireReceived(buffer: AbstractBuffer)

Callback that wire triggers when it receives messaged

Properties

Link copied to clipboard
abstract 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.

Link copied to clipboard
abstract val isBound: Boolean
Link copied to clipboard
abstract val location: RName
Link copied to clipboard
abstract val protocol: IProtocol
Link copied to clipboard
abstract val rdid: RdId
Link copied to clipboard
abstract val serializationContext: SerializationCtx
Link copied to clipboard
abstract val wireScheduler: IScheduler

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

Inheritors

Link copied to clipboard
Link copied to clipboard