Interface LuceneLockManager

    • Method Detail

      • 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
      • 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