Package com.aquima.interactions.portal
Interface IPortalMessageBus
- All Known Implementing Classes:
PortalMessageBus
public interface IPortalMessageBus
The message bus can be used to send messages between components. The message bus is shared between a parent session
and its child sessions
- Since:
- 9.2
- Author:
- m.mahabiersing
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addHandler
(IPortalMessageHandler handler) Add a new message handler to the bus, the handler will be able to react to all messagesvoid
notifyMessage
(IPortalMessage message) Broadcast a message to all listeners on the message busvoid
removeHandler
(IPortalMessageHandler handler) Remove a message handler from the bus
-
Method Details
-
notifyMessage
Broadcast a message to all listeners on the message bus- Parameters:
message
- The message to send, not null.
-
addHandler
Add a new message handler to the bus, the handler will be able to react to all messages- Parameters:
handler
- The handler to add, not null.
-
removeHandler
Remove a message handler from the bus- Parameters:
handler
- The handler to remove, not null.
-