Interface IMailQueue

    • Method Detail

      • consume

        MailItem consume()
        Get a mail item from the list and remove it from the queue
        Returns:
        The older mail item of the queue
      • send

        void send​(MailItem item)
        Put a mail item into the list of the queue
        Parameters:
        item - The mail item to add to the queue
      • size

        int size()
        Returns:
        the number of mail item present in the queue