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
Constructor and Description |
---|
NoLockFactory()
Deprecated.
This constructor was not intended to be public and should not be used.
It will be made private in Lucene 4.0
|
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
@Deprecated public NoLockFactory()
getNoLockFactory()
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.