Intern Root
class InternRoot<TBase : Any>(val serializer: ISerializer<TBase> = Polymorphic()) : IInternRoot<TBase>
Content copied to clipboard
Constructors
Link copied to clipboard
fun <TBase : Any> InternRoot(serializer: ISerializer<TBase> = Polymorphic())
Content copied to clipboard
Functions
Link copied to clipboard
Link copied to clipboard
Creates a clone of this IRdBindable not bound to any protocol
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
Removes interned value. Any future attempts to un-intern IDs previously associated with this value will fail. Not thread-safe. It's up to user to ensure that the value being removed is not being used in messages written on background threads.
Link copied to clipboard
Returns an ID for a value. Returns invalid ID if the value was not interned
Link copied to clipboard
Gets a valie from interned ID, returns null if no value matches the given ID
Properties
Link copied to clipboard
Scheduler on which wire invokes callback onWireReceived. Default is the same as protocol's one.