class ProtocolContexts : RdReactiveBase
This class handles RdContext on protocol level. It tracks existing contexts and allows access to their value sets (when present)
ProtocolContexts(serializationCtx: SerializationCtx)
This class handles RdContext on protocol level. It tracks existing contexts and allows access to their value sets (when present) |
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 registeredContexts: Collection<RdContext<*>> |
|
val serializationCtx: SerializationCtx |
|
val wireScheduler: <ERROR CLASS>
Scheduler on which wire invokes callback onWireReceived. Default is the same as protocol's one. |
val defaultScheduler: <ERROR CLASS> |
|
var isLocalChange: Boolean |
|
var master: Boolean |
|
val serializers: ISerializers |
|
val wire: IWire |
fun deepClone(): IRdBindable |
|
fun <T : Any> getValueSet(context: RdContext<T>): <ERROR CLASS><T>
Get a value set for a given context |
|
fun init(lifetime: <ERROR CLASS>): Unit |
|
fun onWireReceived(buffer: AbstractBuffer): Unit
Callback that wire triggers when it receives messaged |
|
fun readMessageContextAndInvoke(buffer: AbstractBuffer, action: () -> Unit): Unit
Reads a context from a given buffer and invokes the provided action in it |
|
fun <T : Any> registerContext(context: RdContext<T>): Unit
Registers a context to be used with this protocol. Must be invoked on protocol's scheduler |
|
fun writeCurrentMessageContext(buffer: AbstractBuffer): Unit
Writes the current context values to the given buffer |
fun assertBound(): Unit |
|
fun assertThreading(): Unit |
fun writeEmptyContexts(buffer: AbstractBuffer): Unit
Writes an empty context |
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 <T : RdBindableBase> T.static(id: Int): T |
|
fun <T : RdBindableBase> T.withId(id: RdId): T |
|
fun <T : RdBindableBase> T.withIdFromName(name: String): T |