fr.paris.lutece.plugins.crmclient.service.queue
Class DatabaseQueue

java.lang.Object
  extended by fr.paris.lutece.plugins.crmclient.service.queue.DatabaseQueue
All Implemented Interfaces:
ICRMClientQueue

public class DatabaseQueue
extends java.lang.Object
implements ICRMClientQueue

DatabaseQueue


Field Summary
 
Fields inherited from interface fr.paris.lutece.plugins.crmclient.service.queue.ICRMClientQueue
BEAN_SERVICE
 
Constructor Summary
DatabaseQueue()
           
 
Method Summary
 ICRMItem consume()
          Get a crm item from the list and remove it from the queue
 CRMItemQueue getNextCRMItemQueue()
          Return the first crm item in the queue
 void send(ICRMItem crmItem)
          Put a crm item into the list of the queue
 int size()
          Get the size of the queue
 
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(ICRMItem crmItem)
Put a crm item into the list of the queue

Specified by:
send in interface ICRMClientQueue
Parameters:
crmItem - The crm item to add to the queue

consume

public ICRMItem consume()
Get a crm item from the list and remove it from the queue

Specified by:
consume in interface ICRMClientQueue
Returns:
The older crm item of the queue

size

public int size()
Get the size of the queue

Specified by:
size in interface ICRMClientQueue
Returns:
the number of crm item present in the queue

getNextCRMItemQueue

public CRMItemQueue getNextCRMItemQueue()
Return the first crm item in the queue

Specified by:
getNextCRMItemQueue in interface ICRMClientQueue
Returns:
the first crm item in the queue


Copyright © 2012 Mairie de Paris. All Rights Reserved.