Class IndexingLocker

java.lang.Object
io.jmix.search.index.impl.IndexingLocker

@Component("search_IndexingLocker") public class IndexingLocker extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • tryLockQueueProcessing

      public boolean tryLockQueueProcessing()
    • tryLockQueueProcessing

      public boolean tryLockQueueProcessing(long timeout, TimeUnit unit) throws InterruptedException
      Throws:
      InterruptedException
    • unlockQueueProcessing

      public void unlockQueueProcessing()
    • isQueueProcessingLocked

      public boolean isQueueProcessingLocked()
    • tryLockReindexing

      public boolean tryLockReindexing()
    • tryLockReindexing

      public boolean tryLockReindexing(long timeout, TimeUnit unit) throws InterruptedException
      Throws:
      InterruptedException
    • unlockReindexing

      public void unlockReindexing()
    • isReindexingLocked

      public boolean isReindexingLocked()
    • tryLockEntityForEnqueueIndexAll

      public boolean tryLockEntityForEnqueueIndexAll(String entityName)
    • unlockEntityForEnqueueIndexAll

      public void unlockEntityForEnqueueIndexAll(String entityName)
    • tryLockEnqueueingSession

      public boolean tryLockEnqueueingSession(String entityName)
    • tryLockEnqueueingSession

      public boolean tryLockEnqueueingSession(String entityName, long timeout, TimeUnit unit)
    • unlockEnqueueingSession

      public void unlockEnqueueingSession(String entityName)
    • acquireEnqueueingSessionLock

      protected ReentrantLock acquireEnqueueingSessionLock(String entityName)
    • checkEntityInIndexingScope

      protected void checkEntityInIndexingScope(String entityName)