MessageT
- The message type of which the message factory shall create instance of.@Beta
public interface MessageFactory<MessageT extends Message>
MessageT
Modifier and Type | Method and Description |
---|---|
MessageT |
newMessage(MessageTopic messageTopic,
String content)
Instantiates the message type
MessageT by considering the MessageTopic and the message content. |
@Nonnull MessageT newMessage(@Nonnull MessageTopic messageTopic, @Nonnull String content)
MessageT
by considering the MessageTopic
and the message content.messageTopic
- The topic of the messagecontent
- The content of the messageCopyright © 2019 SAP SE. All rights reserved.