Interface IMailQueue
-
- All Known Implementing Classes:
DatabaseQueue,MemoryQueue
public interface IMailQueueIMailQueue interface
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MailItemconsume()Get a mail item from the list and remove it from the queuevoidsend(MailItem item)Put a mail item into the list of the queueintsize()
-
-
-
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
-
-