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