|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.lucene.store.LockFactory
public abstract class LockFactory
Base class for Locking implementation. Directory
uses
instances of this class to implement locking.
Field Summary | |
---|---|
protected java.lang.String |
lockPrefix
|
Constructor Summary | |
---|---|
LockFactory()
|
Method Summary | |
---|---|
abstract void |
clearLock(java.lang.String lockName)
Attempt to clear (forcefully unlock and remove) the specified lock. |
java.lang.String |
getLockPrefix()
Get the prefix in use for all locks created in this LockFactory. |
abstract Lock |
makeLock(java.lang.String lockName)
Return a new Lock instance identified by lockName. |
void |
setLockPrefix(java.lang.String lockPrefix)
Set the prefix in use for all locks created in this LockFactory. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String lockPrefix
Constructor Detail |
---|
public LockFactory()
Method Detail |
---|
public void setLockPrefix(java.lang.String lockPrefix)
public java.lang.String getLockPrefix()
public abstract Lock makeLock(java.lang.String lockName)
lockName
- name of the lock to be created.public abstract void clearLock(java.lang.String lockName) throws java.io.IOException
lockName
- name of the lock to be cleared.
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |