public class NoLockFactory extends LockFactory
LockFactory to disable locking entirely.
This LockFactory is used when you call FSDirectory.setDisableLocks(boolean).
Only one instance of this lock is created. You should call getNoLockFactory() to get the instance.LockFactorylockPrefix| Constructor and Description |
|---|
NoLockFactory() |
| 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-2012 Apache Software Foundation. All Rights Reserved.