org.apache.lucene.store

Class SingleInstanceLockFactory

public class SingleInstanceLockFactory extends LockFactory

Implements LockFactory for a single in-process instance, meaning all locking will take place through this one instance. Only use this LockFactory when you are certain all IndexReaders and IndexWriters for a given index are running against a single shared in-process Directory instance. This is currently the default locking for RAMDirectory.

See Also: LockFactory

Method Summary
voidclearLock(String lockName)
LockmakeLock(String lockName)

Method Detail

clearLock

public void clearLock(String lockName)

makeLock

public Lock makeLock(String lockName)
Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.