public interface IndexLockService
IncrementalIndexManager
,
FullReindexManager
, not directly by the client code).Modifier and Type | Method and Description |
---|---|
void |
lock(EnumSet<SearchIndex> indices)
Blocks to acquire a lock on
indices . |
void |
lock(SearchIndex index)
Blocks to acquire a lock on
index . |
boolean |
tryLock(EnumSet<SearchIndex> indices,
long duration,
TimeUnit timeUnit)
Tries to acquire a lock on
indices in given time limit. |
boolean |
tryLock(SearchIndex index,
long duration,
TimeUnit timeUnit)
Tries to acquire a lock on the
index in given time limit. |
void |
unlock(EnumSet<SearchIndex> indices)
Releases the lock held on
indices . |
void |
unlock(SearchIndex index)
Releases the lock held on
index |
boolean tryLock(SearchIndex index, long duration, TimeUnit timeUnit)
index
in given time limit.boolean tryLock(EnumSet<SearchIndex> indices, long duration, TimeUnit timeUnit)
indices
in given time limit.
The invocation of this method should work in all-or-nothing way, no partial subset of the locks should be acquired.void lock(SearchIndex index)
index
.void lock(EnumSet<SearchIndex> indices)
indices
. The invocation of this method should work in all-or-nothing way,
no partial subset of the locks should be acquired.void unlock(SearchIndex index)
index
IllegalMonitorStateException
- if the lock on the index has is not being heldvoid unlock(EnumSet<SearchIndex> indices)
indices
. The invocation of this method should work in all-or-nothing way,
no partial subset of the locks should be released.IllegalMonitorStateException
- if the lock on one of the provided indices is not being heldCopyright © 2003–2021 Atlassian. All rights reserved.