File
Doc
Category
Size
Date
Package
DbLock.java
API Doc
Apache Lucene 2.1.0
1389
Wed Feb 14 10:46:08 GMT 2007
org.apache.lucene.store.db
DbLock
java.lang.Object
org.apache.lucene.store.Lock
public class DbLock extends Lock
This implementation of {@link org.apache.lucene.store.Lock Lock} is trivial as {@link DbDirectory} operations are managed by the Berkeley DB locking system.
author
Andi Vajda
Fields Summary
boolean
isLocked
Constructors Summary
public DbLock
()
Methods Summary
public
boolean
isLocked
()
return isLocked;
public
boolean
obtain
()
return (isLocked = true);
public void
release
()
isLocked = false;
Java Code Source