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 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:
      getLastCheckedTime in interface org.exoplatform.services.organization.externalstore.IDMQueueService
    • setLastCheckedTime

      public void setLastCheckedTime(org.exoplatform.services.organization.externalstore.model.IDMEntityType<?> entityType, LocalDateTime dateTime)
      Specified by:
      setLastCheckedTime in interface org.exoplatform.services.organization.externalstore.IDMQueueService
    • countAll

      public int countAll() throws Exception
      Specified by:
      countAll in interface org.exoplatform.services.organization.externalstore.IDMQueueService
      Throws:
      Exception
    • count

      public int count(int nbRetries) throws Exception
      Specified by:
      count in interface org.exoplatform.services.organization.externalstore.IDMQueueService
      Throws:
      Exception
    • push

      public void push(org.exoplatform.services.organization.externalstore.model.IDMQueueEntry queueEntry) throws Exception
      Specified by:
      push in interface org.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:
      pop in interface org.exoplatform.services.organization.externalstore.IDMQueueService
      Throws:
      Exception
    • storeAsProcessed

      public void storeAsProcessed(List<org.exoplatform.services.organization.externalstore.model.IDMQueueEntry> queueEntries)
      Specified by:
      storeAsProcessed in interface org.exoplatform.services.organization.externalstore.IDMQueueService
    • incrementRetry

      public void incrementRetry(List<org.exoplatform.services.organization.externalstore.model.IDMQueueEntry> queueEntries)
      Specified by:
      incrementRetry in interface org.exoplatform.services.organization.externalstore.IDMQueueService
    • deleteProcessedEntries

      public void deleteProcessedEntries()
      Specified by:
      deleteProcessedEntries in interface org.exoplatform.services.organization.externalstore.IDMQueueService
    • deleteExceededRetriesEntries

      public void deleteExceededRetriesEntries()
      Specified by:
      deleteExceededRetriesEntries in interface org.exoplatform.services.organization.externalstore.IDMQueueService
    • getMaxRetries

      public int getMaxRetries()
      Specified by:
      getMaxRetries in interface org.exoplatform.services.organization.externalstore.IDMQueueService