File
Doc
Category
Size
Date
Package
DbLock.java
API Doc
Apache Lucene 1.9
1206
Mon Feb 20 09:18:00 GMT 2006
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