Package io.jmix.search.index.impl
Class IndexingLocker
java.lang.Object
io.jmix.search.index.impl.IndexingLocker
-
Field Summary
Modifier and TypeFieldDescriptionprotected final Map<String,
ReentrantLock> protected final Map<String,
ReentrantLock> protected final IndexConfigurationManager
protected final ReentrantLock
protected final ReentrantLock
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected ReentrantLock
acquireEnqueueingSessionLock
(String entityName) protected void
checkEntityInIndexingScope
(String entityName) boolean
boolean
boolean
tryLockEnqueueingSession
(String entityName) boolean
tryLockEnqueueingSession
(String entityName, long timeout, TimeUnit unit) boolean
tryLockEntityForEnqueueIndexAll
(String entityName) boolean
boolean
tryLockQueueProcessing
(long timeout, TimeUnit unit) boolean
boolean
tryLockReindexing
(long timeout, TimeUnit unit) void
unlockEnqueueingSession
(String entityName) void
unlockEntityForEnqueueIndexAll
(String entityName) void
void
-
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
-