Class IDMQueueServiceImpl
java.lang.Object
org.exoplatform.services.organization.idm.externalstore.jpa.IDMQueueServiceImpl
- All Implemented Interfaces:
org.exoplatform.services.organization.externalstore.IDMQueueService
public class IDMQueueServiceImpl
extends Object
implements org.exoplatform.services.organization.externalstore.IDMQueueService
IDM Queue Service implementation using JPA
-
Constructor Summary
ConstructorsConstructorDescriptionIDMQueueServiceImpl(IDMQueueDAO queueDAO, org.exoplatform.commons.api.settings.SettingService settingService, org.exoplatform.container.xml.InitParams params) -
Method Summary
Modifier and TypeMethodDescriptionintcount(int nbRetries) intcountAll()voidvoidgetLastCheckedTime(org.exoplatform.services.organization.externalstore.model.IDMEntityType<?> entityType) intvoidincrementRetry(List<org.exoplatform.services.organization.externalstore.model.IDMQueueEntry> queueEntries) List<org.exoplatform.services.organization.externalstore.model.IDMQueueEntry> pop(int limit, int nbRetries, boolean keepInQueue) voidpush(org.exoplatform.services.organization.externalstore.model.IDMQueueEntry queueEntry) voidsetLastCheckedTime(org.exoplatform.services.organization.externalstore.model.IDMEntityType<?> entityType, LocalDateTime dateTime) voidstoreAsProcessed(List<org.exoplatform.services.organization.externalstore.model.IDMQueueEntry> queueEntries)
-
Constructor Details
-
IDMQueueServiceImpl
public IDMQueueServiceImpl(IDMQueueDAO queueDAO, org.exoplatform.commons.api.settings.SettingService settingService, org.exoplatform.container.xml.InitParams params)
-
-
Method Details
-
getLastCheckedTime
public LocalDateTime getLastCheckedTime(org.exoplatform.services.organization.externalstore.model.IDMEntityType<?> entityType) - Specified by:
getLastCheckedTimein interfaceorg.exoplatform.services.organization.externalstore.IDMQueueService
-
setLastCheckedTime
public void setLastCheckedTime(org.exoplatform.services.organization.externalstore.model.IDMEntityType<?> entityType, LocalDateTime dateTime) - Specified by:
setLastCheckedTimein interfaceorg.exoplatform.services.organization.externalstore.IDMQueueService
-
countAll
- Specified by:
countAllin interfaceorg.exoplatform.services.organization.externalstore.IDMQueueService- Throws:
Exception
-
count
- Specified by:
countin interfaceorg.exoplatform.services.organization.externalstore.IDMQueueService- Throws:
Exception
-
push
public void push(org.exoplatform.services.organization.externalstore.model.IDMQueueEntry queueEntry) throws Exception - Specified by:
pushin interfaceorg.exoplatform.services.organization.externalstore.IDMQueueService- Throws:
Exception
-
pop
public List<org.exoplatform.services.organization.externalstore.model.IDMQueueEntry> pop(int limit, int nbRetries, boolean keepInQueue) throws Exception - Specified by:
popin interfaceorg.exoplatform.services.organization.externalstore.IDMQueueService- Throws:
Exception
-
storeAsProcessed
public void storeAsProcessed(List<org.exoplatform.services.organization.externalstore.model.IDMQueueEntry> queueEntries) - Specified by:
storeAsProcessedin interfaceorg.exoplatform.services.organization.externalstore.IDMQueueService
-
incrementRetry
public void incrementRetry(List<org.exoplatform.services.organization.externalstore.model.IDMQueueEntry> queueEntries) - Specified by:
incrementRetryin interfaceorg.exoplatform.services.organization.externalstore.IDMQueueService
-
deleteProcessedEntries
public void deleteProcessedEntries()- Specified by:
deleteProcessedEntriesin interfaceorg.exoplatform.services.organization.externalstore.IDMQueueService
-
deleteExceededRetriesEntries
public void deleteExceededRetriesEntries()- Specified by:
deleteExceededRetriesEntriesin interfaceorg.exoplatform.services.organization.externalstore.IDMQueueService
-
getMaxRetries
public int getMaxRetries()- Specified by:
getMaxRetriesin interfaceorg.exoplatform.services.organization.externalstore.IDMQueueService
-