FileDocCategorySizeDatePackage
DbLock.javaAPI DocApache Lucene 1.91206Mon Feb 20 09:18:00 GMT 2006org.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;