Interface StoryMessage

All Superinterfaces:
Message

public interface StoryMessage extends Message

An instance of StoryMessage represents a news story.

 

An object implementing this interface can not be instantiated directly, but can be constructed using the MessageFactory that is available on the Publisher interface.

Note: After publishing a message, do not reuse the message (e.g. change the content, republish) as this can cause issues.

  • Method Details

    • getText

      String getText()

      Gets the text of the news story.

      Returns:
      The text.