|
||||||||||
| 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.je.JELock
public class JELock
Port of Andi Vajda's DbDirectory to Java Edition of Berkeley Database
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.apache.lucene.store.Lock |
|---|
Lock.With |
| Field Summary |
|---|
| Fields inherited from class org.apache.lucene.store.Lock |
|---|
failureReason, LOCK_OBTAIN_WAIT_FOREVER, LOCK_POLL_INTERVAL |
| Constructor Summary | |
|---|---|
JELock()
|
|
| Method Summary | |
|---|---|
boolean |
isLocked()
Returns true if the resource is currently locked. |
boolean |
obtain()
Attempts to obtain exclusive access and immediately return upon success or failure. |
void |
release()
Releases exclusive access. |
| 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 JELock()
| Method Detail |
|---|
public boolean obtain()
Lock
obtain in class Lockpublic void release()
Lock
release in class Lockpublic boolean isLocked()
LockLock.obtain() before using the resource.
isLocked in class Lock
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||