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(Message message)
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 itselfCopyright © 2020 SAP SE. All rights reserved.