Interface MessageFactory


public interface MessageFactory
  • Method Details

    • createMessage

      Message createMessage(String message, String source, org.joda.time.DateTime timestamp)
      Returns a new Message object for the given fields.
      Parameters:
      message - the message field value
      source - the source field value
      timestamp - the timestamp field value
      Returns:
      the new message object
    • createMessage

      Message createMessage(Map<String,Object> fields)
      Returns a new Message object for the given fields map.
      Parameters:
      fields - the map of fields
      Returns:
      the new message object
    • createMessage

      Message createMessage(String id, Map<String,Object> newFields)
      Returns a new Message object for the given ID and fields.
      Parameters:
      id - the message ID
      newFields - the map of fields
      Returns:
      the new message object
    • createFakeMessage

      static Message createFakeMessage()
      Returns a fake Message. This message must not be used for real message processing!
      Returns:
      a fake message