fr.paris.lutece.portal.service.mail
Class DatabaseQueue

java.lang.Object
  extended by fr.paris.lutece.portal.service.mail.DatabaseQueue
All Implemented Interfaces:
IMailQueue

public class DatabaseQueue
extends java.lang.Object
implements IMailQueue

DatabaseQueue


Constructor Summary
DatabaseQueue()
           
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatabaseQueue

public DatabaseQueue()
Method Detail

send

public void send(MailItem item)
Put a mail item into the database queue

Specified by:
send in interface IMailQueue
Parameters:
item - The mail item to add to the queue

consume

public MailItem consume()
Get a mail item from the database queue and remove it from the queue

Specified by:
consume in interface IMailQueue
Returns:
The older mail item of the queue

size

public int size()
get the DatabaseQueue size

Specified by:
size in interface IMailQueue
Returns:
the DatabaseQueue size


Copyright © 2012 Mairie de Paris. All Rights Reserved.