Class PortalMessageBus
java.lang.Object
com.aquima.interactions.portal.model.session.PortalMessageBus
- All Implemented Interfaces:
IPortalMessageBus
Not serializable, must be recreated when deserializing a session
- Since:
- 9.2
- Author:
- m.mahabiersing
-
Constructor Summary
Constructors -
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
-
Constructor Details
-
PortalMessageBus
public PortalMessageBus()
-
-
Method Details
-
notifyMessage
Description copied from interface:IPortalMessageBus
Broadcast a message to all listeners on the message bus- Specified by:
notifyMessage
in interfaceIPortalMessageBus
- Parameters:
message
- The message to send, not null.
-
addHandler
Description copied from interface:IPortalMessageBus
Add a new message handler to the bus, the handler will be able to react to all messages- Specified by:
addHandler
in interfaceIPortalMessageBus
- Parameters:
handler
- The handler to add, not null.
-
removeHandler
Description copied from interface:IPortalMessageBus
Remove a message handler from the bus- Specified by:
removeHandler
in interfaceIPortalMessageBus
- Parameters:
handler
- The handler to remove, not null.
-