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 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.