Class LogNotification

All Implemented Interfaces:
Serializable

public class LogNotification extends MQNotification
Class containing information on log related notifications. Log Notifications are sent when an entry in the broker log is made.
See Also:
  • Field Details

  • Constructor Details

    • LogNotification

      public LogNotification(String type, Object source, long sequenceNumber)
      Creates a LogNotification object.
      Parameters:
      type - The notification type.
      source - The notification source.
      sequenceNumber - The notification sequence number within the source object.
  • Method Details

    • setMessage

      public void setMessage(String msg)
      Sets the message related to this log notification.
      Parameters:
      msg - The log message for this notification.
    • getMessage

      public String getMessage()
      Returns message related to this log notification.
      Overrides:
      getMessage in class Notification
      Returns:
      The log message for this notification.
    • setLevel

      public void setLevel(String level)
      Sets the log level related to this log notification.
      Parameters:
      level - The log level for this notification.
    • getLevel

      public String getLevel()
      Returns the log level related to this log notification.
      Returns:
      The log level for this notification.