Interface LuceneLockManager

All Known Implementing Classes:
LuceneLockManagerDB

public interface LuceneLockManager
  • Method Details

    • acquireLock

      LockResult acquireLock(String indexName, long timeoutMs) throws LockException
      acquire a lock
      Parameters:
      indexName - the index name
      timeoutMs - 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 LockResult
      timeoutMs - the timout in ms to extend from the current time
      Returns:
      LockResult
      Throws:
      LockException
    • close

      void close()
      reset all the lock