fr.paris.lutece.portal.service.mail
Interface IMailQueue

All Known Implementing Classes:
DatabaseQueue, MemoryQueue

public interface IMailQueue

IMailQueue interface


Method Summary
 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()
           
 

Method Detail

consume

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

Returns:
The older mail item of the queue

send

void send(MailItem item)
Put a mail item into the list of the queue

Parameters:
item - The mail item to add to the queue

size

int size()
Returns:
the number of mail item present in the queue


Copyright © 2009 Mairie de Paris. All Rights Reserved.