JCL Help:TJclBaseNotifier
JCL Help: TJclBaseNotifier Class
Search in JCL Help
Search in all projectsClass Hierarchy
IJclNotifier
|
TJclBaseNotifier
Summary
Base implementation of IJclNotifier.
Pascal
public TJclBaseNotifier = class(TInterfacedObject, IJclNotifier);
Description
TJclBaseNotifier is a base implementation of IJclNotifier. It provides notification in a sequential order, using the same order in which listeners were registered.
Thread safetyIf the unit is compiled with the THREADSAFE define, all access to the notifier list is protected using a multi-read/exclusive-write synchronization object.
Sending notifications is seen as a read-only operation since the list is not modified.
Note that TJclBaseNotifier does not create threads when generating the notifications. Each listener is notified in a sequential manner, where each listener will have to wait for the previous listener to finish. A call to the IJclNotifier.Notify will thus not finish until all listeners have processed the notification.
NotesUsing this implementation does not imply TJclBaseListener or TJclBaseNotificationMessage have to be used; TJclBaseNotifier will handle any IJclListener and IJclNotificationMessage implementation.
About
Unit
Donator
Marcel Bestebroer
Contribute to this help topic
This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page