public interface MessageDelegator
MessageListener
instances that can be notified in case a message occurs.Modifier and Type | Method and Description |
---|---|
MessageDelegator |
addListener(MessageListener<? extends Message> listener)
Adds a listener instance of type
MessageListener that gets notified upon the reception of a message. |
void |
notifyListeners(MessageTopic messageTopic,
String content)
Notifies all registered listeners.
|
@Nonnull MessageDelegator addListener(@Nonnull MessageListener<? extends Message> listener)
MessageListener
that gets notified upon the reception of a message.listener
- The listener itselfvoid notifyListeners(@Nonnull MessageTopic messageTopic, @Nonnull String content)
messageTopic
- The topic the message belongs tocontent
- The content of the messageCopyright © 2019 SAP SE. All rights reserved.