|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.lucene.store.Lock
org.apache.lucene.store.db.DbLock
public class DbLock
This implementation of Lock is
trivial as DbDirectory operations are managed by the Berkeley DB
locking system.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.apache.lucene.store.Lock |
|---|
org.apache.lucene.store.Lock.With |
| Field Summary |
|---|
| Fields inherited from class org.apache.lucene.store.Lock |
|---|
failureReason, LOCK_OBTAIN_WAIT_FOREVER, LOCK_POLL_INTERVAL |
| Constructor Summary | |
|---|---|
DbLock()
|
|
| Method Summary | |
|---|---|
boolean |
isLocked()
|
boolean |
obtain()
|
void |
release()
|
| Methods inherited from class org.apache.lucene.store.Lock |
|---|
obtain |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DbLock()
| Method Detail |
|---|
public boolean obtain()
obtain in class org.apache.lucene.store.Lockpublic void release()
release in class org.apache.lucene.store.Lockpublic boolean isLocked()
isLocked in class org.apache.lucene.store.Lock
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||