User Tools

Site Tools


events-ids-references

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
events-ids-references [2018/11/16 06:03]
barryfp
events-ids-references [2018/12/10 15:02] (current)
barryfp
Line 76: Line 76:
 As well as the event type identifier, the EventData type also includes a ''​source''​ field which provides a reference to the object that generated the event, and a ''​details''​ field which refers to a Data instance offering additional details relevant to that event. To do this, a parameter of the event can be declared in the interface, and ''​emitevent''​ can then pass in an instance of this data type, which is then referenced by the ''​details''​ field of the EventData instance delivered to the event sink. As well as the event type identifier, the EventData type also includes a ''​source''​ field which provides a reference to the object that generated the event, and a ''​details''​ field which refers to a Data instance offering additional details relevant to that event. To do this, a parameter of the event can be declared in the interface, and ''​emitevent''​ can then pass in an instance of this data type, which is then referenced by the ''​details''​ field of the EventData instance delivered to the event sink.
  
-TogetherDana's unique object identifiers ​and event model support a wide range of design patterns for which self-references would otherwise be needed.+Note that event sinks are single-threaded,​ such that multiple simultaneous events received at a sink are placed into a queue. Once the event sink returns from handling the first event in the queue, the event sink is called again for the second item, and so on. If an event queue becomes full due to the speed of events arriving exceeding the speed of events being handled, the event queue will drop any further events that arrive until more space becomes available.
events-ids-references.txt ยท Last modified: 2018/12/10 15:02 by barryfp