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


Constructor Summary
DatabaseQueue()
           
 
Method Summary
 ICRMItem consume()
          Get a crm item from the list and remove it from 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


Copyright © 2011 Mairie de Paris. All Rights Reserved.