org.apache.lucene.store
public class NoLockFactory extends LockFactory
LockFactory
to disable locking entirely.
Only one instance of this lock is created. You should call getNoLockFactory()
to get the instance.LockFactory
lockPrefix
Modifier and Type | Method and Description |
---|---|
void |
clearLock(String lockName)
Attempt to clear (forcefully unlock and remove) the
specified lock.
|
static NoLockFactory |
getNoLockFactory() |
Lock |
makeLock(String lockName)
Return a new Lock instance identified by lockName.
|
getLockPrefix, setLockPrefix
public static NoLockFactory getNoLockFactory()
public Lock makeLock(String lockName)
LockFactory
makeLock
in class LockFactory
lockName
- name of the lock to be created.public void clearLock(String lockName)
LockFactory
clearLock
in class LockFactory
lockName
- name of the lock to be cleared.Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.