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.LockFactorylockPrefix| 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, setLockPrefixpublic static NoLockFactory getNoLockFactory()
public Lock makeLock(String lockName)
LockFactorymakeLock in class LockFactorylockName - name of the lock to be created.public void clearLock(String lockName)
LockFactoryclearLock in class LockFactorylockName - name of the lock to be cleared.Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.