public class MemoryQueue extends Object implements IMailQueue
| Constructor and Description |
|---|
MemoryQueue() |
| Modifier and Type | Method and Description |
|---|---|
MailItem |
consume()
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 |
size()
get the MemoryQueue size
|
public void send(MailItem item)
send in interface IMailQueueitem - The mail item to add to the queuepublic MailItem consume()
consume in interface IMailQueuepublic int size()
size in interface IMailQueueCopyright © 2020 City of Paris. All rights reserved.