Protocol Contexts
class ProtocolContexts(val serializationCtx: SerializationCtx) : RdReactiveBase
Content copied to clipboard
This class handles RdContext on protocol level. It tracks existing contexts and allows access to their value sets (when present)
Constructors
Types
Functions
Link copied to clipboard
Link copied to clipboard
Creates a clone of this IRdBindable not bound to any protocol
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Assigns IDs to this node and its child nodes in the graph.
Link copied to clipboard
Callback that wire triggers when it receives messaged
Link copied to clipboard
fun readMessageContextAndInvoke(buffer: AbstractBuffer, action: () -> Unit)
Content copied to clipboard
Reads a context from a given buffer and invokes the provided action in it
Link copied to clipboard
Registers a context to be used with this protocol. Must be invoked on protocol's scheduler
Link copied to clipboard
fun synchronizeWith( lifetime: Lifetime, otherBindable: RdBindableBase, accepts: (Any?) -> Boolean = { true })
Content copied to clipboard
Link copied to clipboard
Writes the current context values to the given buffer
Properties
Link copied to clipboard
Scheduler on which wire invokes callback onWireReceived. Default is the same as protocol's one.