Package io.jmix.search.index.impl
Class IndexingLocker
java.lang.Object
io.jmix.search.index.impl.IndexingLocker
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Map<String,ReentrantLock> protected final Map<String,ReentrantLock> protected final IndexConfigurationManagerprotected final ReentrantLockprotected final ReentrantLock -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ReentrantLockacquireEnqueueingSessionLock(String entityName) protected voidcheckEntityInIndexingScope(String entityName) booleanbooleanbooleantryLockEnqueueingSession(String entityName) booleantryLockEnqueueingSession(String entityName, long timeout, TimeUnit unit) booleantryLockEntityForEnqueueIndexAll(String entityName) booleanbooleantryLockQueueProcessing(long timeout, TimeUnit unit) booleanbooleantryLockReindexing(long timeout, TimeUnit unit) voidunlockEnqueueingSession(String entityName) voidunlockEntityForEnqueueIndexAll(String entityName) voidvoid
-
Field Details
-
indexingQueueProcessingLock
-
reindexingLock
-
enqueueAllLocks
-
enqueueingSessionOperationLocks
-
indexConfigurationManager
-
-
Constructor Details
-
IndexingLocker
-
-
Method Details
-
tryLockQueueProcessing
public boolean tryLockQueueProcessing() -
tryLockQueueProcessing
- Throws:
InterruptedException
-
unlockQueueProcessing
public void unlockQueueProcessing() -
isQueueProcessingLocked
public boolean isQueueProcessingLocked() -
tryLockReindexing
public boolean tryLockReindexing() -
tryLockReindexing
- Throws:
InterruptedException
-
unlockReindexing
public void unlockReindexing() -
isReindexingLocked
public boolean isReindexingLocked() -
tryLockEntityForEnqueueIndexAll
-
unlockEntityForEnqueueIndexAll
-
tryLockEnqueueingSession
-
tryLockEnqueueingSession
-
unlockEnqueueingSession
-
acquireEnqueueingSessionLock
-
checkEntityInIndexingScope
-