Interface LuceneLockManager
-
- All Known Implementing Classes:
LuceneLockManagerDB
public interface LuceneLockManager
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description LockResultacquireLock(String indexName, long timeoutMs)acquire a lockvoidclose()reset all the lockLockResultrefreshLock(LockResult lockResult, long timeoutMs)voidreleaseLock(LockResult lockResult)release a lock
-
-
-
Method Detail
-
acquireLock
LockResult acquireLock(String indexName, long timeoutMs) throws LockException
acquire a lock- Parameters:
indexName- the index nametimeoutMs- the timout in ms- Returns:
- LockResult
- Throws:
LockException
-
releaseLock
void releaseLock(LockResult lockResult) throws LockException
release a lock- Parameters:
lockResult- the LockResult- Throws:
LockException
-
refreshLock
LockResult refreshLock(LockResult lockResult, long timeoutMs) throws LockException
- Parameters:
lockResult- the LockResulttimeoutMs- the timout in ms to extend from the current time- Returns:
- LockResult
- Throws:
LockException
-
close
void close()
reset all the lock
-
-