FileDocCategorySizeDatePackage
DbLock.javaAPI DocApache Lucene 2.1.01389Wed Feb 14 10:46:08 GMT 2007org.apache.lucene.store.db

DbLock

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 booleanisLocked()

        return isLocked;
    
public booleanobtain()

        return (isLocked = true);
    
public voidrelease()

        isLocked = false;