org.apache.lucene.store.db
public class: DbLock [javadoc |
source]
java.lang.Object
org.apache.lucene.store.Lock
org.apache.lucene.store.db.DbLock
This implementation of
Lock is
trivial as
DbDirectory operations are managed by the Berkeley DB
locking system.
Field Summary |
---|
boolean | isLocked | |
Methods from java.lang.Object: |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method from org.apache.lucene.store.db.DbLock Detail: |
public boolean isLocked() {
return isLocked;
}
|
public boolean obtain() {
return (isLocked = true);
}
|
public void release() {
isLocked = false;
}
|