Rd Context
Describes a context and provides access to value associated with this context. The associated value is thread-local and synchronized between send/advise pairs on IWire. The associated value will be the same in handler method in IWire.advise as it was in IWire.send. Instances of this class with the same key will share the associated value. Best practice is to declare contexts in toplevel entities in protocol model using Toplevel.threadLocalContext. Manual declaration is also possible.
See also
Parameters
textual name of this context. This is used to match this with protocol counterparts
Whether this context is heavy. A heavy context maintains a value set and interns values. A light context sends values as-is and does not maintain a value set.
Serializer to be used with this context.
Constructors
Types
Functions
Changes current value to newValue and returns a cookie which should restore old value on closing
Properties
Value which is used as a key inside per-context entities like RdPerContextMap