|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.lucene.store.LockFactory
org.apache.lucene.store.NoLockFactory
public class NoLockFactory
Use this 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.
LockFactory| Field Summary |
|---|
| Fields inherited from class org.apache.lucene.store.LockFactory |
|---|
lockPrefix |
| Constructor Summary | |
|---|---|
NoLockFactory()
|
|
| Method Summary | |
|---|---|
void |
clearLock(java.lang.String lockName)
Attempt to clear (forcefully unlock and remove) the specified lock. |
static NoLockFactory |
getNoLockFactory()
|
Lock |
makeLock(java.lang.String lockName)
Return a new Lock instance identified by lockName. |
| Methods inherited from class org.apache.lucene.store.LockFactory |
|---|
getLockPrefix, setLockPrefix |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NoLockFactory()
| Method Detail |
|---|
public static NoLockFactory getNoLockFactory()
public Lock makeLock(java.lang.String lockName)
LockFactory
makeLock in class LockFactorylockName - name of the lock to be created.public void clearLock(java.lang.String lockName)
LockFactory
clearLock in class LockFactorylockName - name of the lock to be cleared.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||