public final class SingleInstanceLockFactory extends LockFactory
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.LockFactory
Constructor and Description |
---|
SingleInstanceLockFactory() |
public Lock makeLock(Directory dir, String lockName)
LockFactory
makeLock
in class LockFactory
lockName
- name of the lock to be created.Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.