Interface IMailQueue

All Known Implementing Classes:
DatabaseQueue, MemoryQueue

public interface IMailQueue
IMailQueue interface
  • Method Summary

    Modifier and Type
    Method
    Description
    Get a mail item from the list and remove it from the queue
    void
    send(MailItem item)
    Put a mail item into the list of the queue
    int
     
  • Method Details

    • 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