fr.paris.lutece.plugins.crmclient.service.queue
Interface ICRMClientQueue

All Known Implementing Classes:
DatabaseQueue

public interface ICRMClientQueue

ICRMClientQueue


Field Summary
static java.lang.String BEAN_SERVICE
           
 
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
 

Field Detail

BEAN_SERVICE

static final java.lang.String BEAN_SERVICE
See Also:
Constant Field Values
Method Detail

consume

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

Returns:
The older crm item of the queue

send

void send(ICRMItem crmItem)
Put a crm item into the list of the queue

Parameters:
crmItem - The crm item to add to the queue

size

int size()
Get the size of the queue

Returns:
the number of crm item present in the queue

getNextCRMItemQueue

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

Returns:
the first crm item in the queue


Copyright © 2012 Mairie de Paris. All Rights Reserved.