Interface IMessageService.IMessageBox

All Known Implementing Classes:
MessageBox
Enclosing interface:
IMessageService

public static interface IMessageService.IMessageBox
IMessageBox interface represents ActiveMonitor Messages.
Author:
ActiveViam
  • Method Details Link icon

    • getMessages Link icon

      Collection<IMessage> getMessages()
      Gets all messages received by a given recipient.
      Returns:
      the messages for in the mailbox
    • delete Link icon

      void delete(long messageId) throws ServiceException
      Deletes a message.
      Parameters:
      messageId - id of the message to delete
      Throws:
      ServiceException - if an error occurs.
    • markAsRead Link icon

      void markAsRead(long messageId) throws ServiceException
      Marks the message as read.
      Parameters:
      messageId - id of the message to flag
      Throws:
      ServiceException - if an error occurs.
    • answer Link icon

      void answer(long messageId, Object answer) throws ServiceException
      Answers a message.
      Parameters:
      messageId - the id of the message to answer
      answer - the content of the answer.
      Throws:
      ServiceException - if an error occurs.
    • subscribe Link icon

      void subscribe(IMessageSubscriber client)
      Subscribes to all messages of a given recipient.

      The messages are pushed to the subscriber as soon as they arrive.

      Parameters:
      client - listener of messages.
    • unsubscribe Link icon

      void unsubscribe(IMessageSubscriber client)
      Unsubscribes a client for a given recipient.
      Parameters:
      client - listener to unsubscribe.