public class DatabaseQueue extends Object implements IMailQueue
| Constructor and Description |
|---|
DatabaseQueue() |
| Modifier and Type | Method and Description |
|---|---|
MailItem |
consume()
Get a mail item from the database queue and remove it from the queue
|
void |
send(MailItem item)
Put a mail item into the database queue
|
int |
size()
get the DatabaseQueue 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.