Package io.jmix.search.index.impl
Class IndexingLocker
java.lang.Object
io.jmix.search.index.impl.IndexingLocker
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected final Map<String,ReentrantLock> protected final Map<String,ReentrantLock> protected final IndexConfigurationManagerprotected final ReentrantLockprotected final ReentrantLock
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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- 
tryLockQueueProcessingpublic boolean tryLockQueueProcessing()
- 
tryLockQueueProcessing- Throws:
- InterruptedException
 
- 
unlockQueueProcessingpublic void unlockQueueProcessing()
- 
isQueueProcessingLockedpublic boolean isQueueProcessingLocked()
- 
tryLockReindexingpublic boolean tryLockReindexing()
- 
tryLockReindexing- Throws:
- InterruptedException
 
- 
unlockReindexingpublic void unlockReindexing()
- 
isReindexingLockedpublic boolean isReindexingLocked()
- 
tryLockEntityForEnqueueIndexAll
- 
unlockEntityForEnqueueIndexAll
- 
tryLockEnqueueingSession
- 
tryLockEnqueueingSession
- 
unlockEnqueueingSession
- 
acquireEnqueueingSessionLock
- 
checkEntityInIndexingScope
 
-