Class DatabaseQueue
java.lang.Object
fr.paris.lutece.portal.service.mail.DatabaseQueue
- All Implemented Interfaces:
IMailQueue
DatabaseQueue
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
DatabaseQueue
public DatabaseQueue()
-
-
Method Details
-
send
Put a mail item into the database queue- Specified by:
sendin interfaceIMailQueue- Parameters:
item- The mail item to add to the queue
-
consume
Get a mail item from the database queue and remove it from the queue- Specified by:
consumein interfaceIMailQueue- Returns:
- The older mail item of the queue
-
size
public int size()get the DatabaseQueue size- Specified by:
sizein interfaceIMailQueue- Returns:
- the DatabaseQueue size
-