Class IMessageGenerator

Direct Known Subclasses:
StandardMessageGenerator

public abstract class IMessageGenerator
extends IPublisher

Message generator

Used for generating messages propagated throughout the system, such as logs, warnings, errors, etc.
  • Constructor Details

    • IMessageGenerator

      public IMessageGenerator()
  • Method Details

    • send

      public abstract void send​(String content, IMessageGenerator.Type type, String timestamp)
      Sends the message with the given content, type and timestamp.
      Parameters:
      content - Message content.
      type - Message type.
      timestamp - Message timestamp.
    • send

      public void send​(String content, IMessageGenerator.Type type)
      Sends the message with the given content and type.
      Parameters:
      content - Message content.
      type - Message type.
    • log

      public void log​(String content)
      Produces a log message with the given content and the current timestamp.
      Parameters:
      content - Message content.
    • warning

      public void warning​(String content)
      Produces a warning message with the given content and the current timestamp.
      Parameters:
      content - Message content.
    • error

      public void error​(String content)
      Produces an error message with the given content and the current timestamp.
      Parameters:
      content - Message content.