MessageBus class

The MessageBus class implements an interface for accessing the message bus for receiving, distributing, and delivering messages between objects connected to it An object of the MessageBus class provides many message endpoints through which the objects of the core library can subscribe to the messages or send them.

The MessageBus class provides functions that return the message endpoints being used. If you delete a message endpoint, message transmission through this message endpoint stops.

Using a message bus allows you to implement the publisher-subscriber principle. The publisher sends messages through a message bus as a proxy. The subscription object filters messages and sends them to the subscribers. This approach allows you to avoid creating a large number of IPC channels because the publisher and subscribers are not connected directly.

Page top