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 of the message bus through which the objects of the core
module can subscribe to the messages or send them.
The MessageBus
class provides functions that you can use to create message endpoints and pass messages through the message bus. 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