Interface QueueMessage


public interface QueueMessage
  • Field Details

  • Method Details

    • put

      boolean put(MessageInfo message) throws Exception
      Puts the message into the queue
      Parameters:
      message -
      Returns:
      Throws:
      Exception
    • send

      void send() throws Exception
      Peek the message from queue and send
      Throws:
      Exception
    • sendMessage

      boolean sendMessage(MessageInfo message) throws Exception
      Sends mail instantly without passing by queue (use directly the mail service). If sending mail is suspended (by Mail Counter MBean), the message will not be sent, thus it will be suspended.
      Parameters:
      message - the message to be sent
      Returns:
      true if the message is sent or mail service is off
      Throws:
      Exception
    • removeAll

      void removeAll() throws Exception
      Removes all queue elements
      Throws:
      Exception
    • enable

      void enable(boolean enabled)
      Enable/Disable sending mail message
      Parameters:
      enabled - true to enable and false to disable