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 IMailQueue
item
- The mail item to add to the queuepublic MailItem consume()
consume
in interface IMailQueue
public int size()
size
in interface IMailQueue
Copyright © 2020 City of Paris. All rights reserved.