Interface IMailQueue
- All Known Implementing Classes:
DatabaseQueue,MemoryQueue
public interface IMailQueue
IMailQueue interface
-
Method Summary
-
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
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
-